Showing 5,566 of 7,504 total issues
Method get_sample_permalink_html
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
$post = &get_post($id);
list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug);
if ( 'publish' == $post->post_status ) {
Method wp_generate_attachment_metadata
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_generate_attachment_metadata( $attachment_id, $file ) {
$attachment = get_post( $attachment_id );
$metadata = array();
if ( preg_match('!^image/!', get_post_mime_type( $attachment )) && file_is_displayable_image($file) ) {
Method send_confirmation_on_profile_email
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function send_confirmation_on_profile_email() {
global $errors, $wpdb;
$current_user = wp_get_current_user();
if ( ! is_object($errors) )
$errors = new WP_Error();
Method wp_ajax_add_tag
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_add_tag() {
global $wp_list_table;
check_ajax_referer( 'add-tag', '_wpnonce_add-tag' );
$post_type = !empty($_POST['post_type']) ? $_POST['post_type'] : 'post';
Method step2
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function step2() {
set_time_limit( 0 );
update_option( 'ljapi_step', 2 );
$this->username = get_option( 'ljapi_username' );
$this->password = get_option( 'ljapi_password' );
Method greet
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function greet() {
$this->header();
?>
<p><?php _e('This is a basic GreyMatter to WordPress import script.') ?></p>
<p><?php _e('What it does:') ?></p>
Method signup_another_blog
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) {
$current_user = wp_get_current_user();
if ( ! is_wp_error($errors) ) {
$errors = new WP_Error();
Method wp_getTerms
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getTerms( $args ) {
if ( ! $this->minimum_args( $args, 4 ) )
return $this->error;
$this->escape( $args );
Method wp_getUsers
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_getUsers( $args ) {
if ( ! $this->minimum_args( $args, 3 ) )
return $this->error;
$this->escape( $args );
Method saveAttachment
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function saveAttachment($name, $offset, $length, $image_mime=null) {
try {
// do not extract at all
if ($this->getid3->option_save_attachments === getID3::ATTACHMENTS_NONE) {
Method query
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function query() {
$args = func_get_args();
$method = array_shift($args);
$request = new IXR_Request($method, $args);
$xml = $request->getXml();
Method update_callback
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_callback( $widget_args = 1 ) {
global $wp_registered_widgets;
if ( is_numeric($widget_args) )
$widget_args = array( 'number' => $widget_args );
Method wp_convert_widget_settings
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_convert_widget_settings($base_name, $option_name, $settings) {
// This test may need expanding.
$single = $changed = false;
if ( empty($settings) ) {
$single = true;
Method find
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function find($type = SIMPLEPIE_LOCATOR_ALL, &$working)
{
if ($this->is_feed($this->file))
{
return $this->file;
Method wp_admin_bar_wp_menu
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_admin_bar_wp_menu( $wp_admin_bar ) {
$wp_admin_bar->add_menu( array(
'id' => 'wp-logo',
'title' => '<span class="ab-icon"></span>',
'href' => self_admin_url( 'about.php' ),
Method dynamic_sidebar
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dynamic_sidebar($index = 1) {
global $wp_registered_sidebars, $wp_registered_widgets;
if ( is_int($index) ) {
$index = "sidebar-$index";
Method get_description
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_description()
{
if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'subtitle'))
{
return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
Method query
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function query($query) {
if ( ! $this->ready )
return false;
// filter the query, if filters are available
Method unknown
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function unknown()
{
$ws = strspn($this->file->body, "\x09\x0A\x0B\x0C\x0D\x20");
if (strtolower(substr($this->file->body, $ws, 14)) === '<!doctype html'
|| strtolower(substr($this->file->body, $ws, 5)) === '<html'
Method append
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function append($el, $text) {
if (!$el) {
return;
}
if ( $this->current_namespace )