Skip to content

Instantly share code, notes, and snippets.

@rlerdorf
Created May 7, 2013 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rlerdorf/5530518 to your computer and use it in GitHub Desktop.
Save rlerdorf/5530518 to your computer and use it in GitHub Desktop.
--------------------------------
File : wp-includes/general-template.php:1584
Reason : UseUndeclaredVariable
Snippet : $currentday
Line : if ( $currentday != $previousweekday ) {
--------------------------------
File : wp-includes/general-template.php:1588
Reason : UseUndeclaredVariable
Snippet : $currentday
Line : $previousweekday = $currentday;
--------------------------------
File : wp-includes/ms-load.php:96
Reason : UseUndeclaredVariable
Snippet : $current_site
Line : wp_die( sprintf( __( 'This site has not been activated yet. If you are having problems activating your site, please contact <a href="mailto:%1$s">%1$s</a>.' ), str_replace( '@', ' AT ', get_site_option( 'admin_email', "support@{$current_site->domain}" ) ) ) );
--------------------------------
File : wp-includes/class-snoopy.php:1013
Reason : UseUndeclaredVariable
Snippet : $temp_dir
Line : $headerfile = tempnam($temp_dir, "sno");
--------------------------------
File : wp-includes/deprecated.php:1092
Reason : UseUndeclaredVariable
Snippet : $wpdb
Line : $counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
--------------------------------
File : wp-includes/deprecated.php:1092
Reason : UseUndeclaredVariable
Snippet : $wpdb
Line : $counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
--------------------------------
File : wp-admin/includes/media.php:395
Reason : UseUndeclaredVariable
Snippet : $current_user
Line : var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time(); ?>'};
--------------------------------
File : wp-admin/includes/class-ftp.php:508
Reason : UseUndeclaredVariable
Snippet : $arg
Line : return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist");
--------------------------------
File : wp-admin/includes/class-ftp.php:508
Reason : UseUndeclaredVariable
Snippet : $arg
Line : return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist");
--------------------------------
File : wp-admin/includes/class-ftp.php:587
Reason : UseUndeclaredVariable
Snippet : $rest
Line : if($this->_can_restore and $rest!=0) fseek($fp, $rest);
--------------------------------
File : wp-admin/includes/class-ftp.php:587
Reason : UseUndeclaredVariable
Snippet : $rest
Line : if($this->_can_restore and $rest!=0) fseek($fp, $rest);
--------------------------------
File : wp-admin/includes/class-ftp.php:594
Reason : UseUndeclaredVariable
Snippet : $rest
Line : if($this->_can_restore and $rest!=0) $this->restore($rest);
--------------------------------
File : wp-admin/includes/class-ftp.php:594
Reason : UseUndeclaredVariable
Snippet : $rest
Line : if($this->_can_restore and $rest!=0) $this->restore($rest);
--------------------------------
File : wp-admin/includes/class-ftp.php:813
Reason : UnknownObjectMethod
Snippet : $this->my_regexp('^' . $tester . '$', $string)
Line : if($this->my_regexp("^$tester$",$string)) return true;
--------------------------------
File : wp-admin/includes/class-ftp.php:763
Reason : TooManyArgument
Snippet : $this->mkdir($dir, $mode)
Line : $r=$this->mkdir($dir, $mode);
--------------------------------
File : wp-admin/includes/class-pclzip.php:2737
Reason : UseUndeclaredVariable
Snippet : $v_file
Line : @fclose($v_file);
--------------------------------
File : wp-admin/includes/class-pclzip.php:3969
Reason : UseUndeclaredVariable
Snippet : $v_file
Line : fclose($v_file);
--------------------------------
File : wp-admin/includes/class-wp-media-list-table.php:50
Reason : UseUndeclaredVariable
Snippet : $total_orphans
Line : if ( !isset( $total_orphans ) )
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:1032
Reason : UseUndeclaredVariable
Snippet : $feedback
Line : if ( !empty($feedback) )
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:1033
Reason : UseUndeclaredVariable
Snippet : $feedback
Line : add_filter('update_feedback', $feedback);
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:766
Reason : TooManyArgument
Snippet : remove_filter('upgrader_post_install', array(&$this, 'check_parent_theme_filter'), 10, 3)
Line : remove_filter('upgrader_post_install', array(&$this, 'check_parent_theme_filter'), 10, 3);
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:811
Reason : TooManyArgument
Snippet : remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2)
Line : remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2);
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:812
Reason : TooManyArgument
Snippet : remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2)
Line : remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2);
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:813
Reason : TooManyArgument
Snippet : remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4)
Line : remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4);
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:902
Reason : TooManyArgument
Snippet : remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2)
Line : remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2);
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:903
Reason : TooManyArgument
Snippet : remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2)
Line : remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2);
--------------------------------
File : wp-admin/includes/class-wp-upgrader.php:904
Reason : TooManyArgument
Snippet : remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4)
Line : remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_theme'), 10, 4);
--------------------------------
File : wp-admin/includes/theme-install.php:40
Reason : UseUndeclaredVariable
Snippet : $features
Line : return $features;
--------------------------------
File : wp-admin/includes/class-wp-filesystem-ssh2.php:187
Reason : UseUndeclaredVariable
Snippet : $mode
Line : return $this->run_command(sprintf('chgrp %o %s', $mode, escapeshellarg($file)), true);
--------------------------------
File : wp-admin/includes/class-wp-filesystem-ssh2.php:188
Reason : UseUndeclaredVariable
Snippet : $mode
Line : return $this->run_command(sprintf('chgrp -R %o %s', $mode, escapeshellarg($file)), true);
--------------------------------
File : wp-admin/includes/class-wp-filesystem-ssh2.php:213
Reason : UseUndeclaredVariable
Snippet : $mode
Line : return $this->run_command(sprintf('chown %o %s', $mode, escapeshellarg($file)), true);
--------------------------------
File : wp-admin/includes/class-wp-filesystem-ssh2.php:214
Reason : UseUndeclaredVariable
Snippet : $mode
Line : return $this->run_command(sprintf('chown -R %o %s', $mode, escapeshellarg($file)), true);
--------------------------------
File : wp-admin/includes/theme.php:40
Reason : UseUndeclaredVariable
Snippet : $url
Line : request_filesystem_credentials($url, '', true); // Failed to connect, Error and request again
--------------------------------
File : wp-includes/ID3/module.tag.id3v2.php:1888
Reason : UseUndeclaredVariable
Snippet : $frame_indexpoints
Line : for ($i = 0; $i < $frame_indexpoints; $i++) {
--------------------------------
File : wp-includes/ID3/module.tag.id3v2.php:433
Reason : TooFewArgument
Snippet : substr($footer[5])
Line : $id3_flags = ord(substr($footer{5}));
--------------------------------
File : wp-includes/ID3/module.tag.id3v2.php:1586
Reason : StatementHasNoEffect
Snippet : $frame_ownerid == '';
Line : $frame_ownerid == '';
--------------------------------
File : wp-includes/atomlib.php:134
Reason : UseUndeclaredVariable
Snippet : $xml_parser
Line : xml_error_string(xml_get_error_code($xml_parser)),
--------------------------------
File : wp-includes/ID3/module.audio.mp3.php:37
Reason : TooManyArgument
Snippet : $this->getOnlyMPEGaudioInfoBruteForce($this->getid3->fp, $info)
Line : $this->getOnlyMPEGaudioInfoBruteForce($this->getid3->fp, $info);
--------------------------------
File : wp-includes/SimplePie/Misc.php:127
Reason : TooManyArgument
Snippet : SimplePie_Misc::entities_decode(end($attribs[$j]), 'UTF-8')
Line : $return[$i]['attribs'][strtolower($attribs[$j][1])]['data'] = SimplePie_Misc::entities_decode(end($attribs[$j]), 'UTF-8');
--------------------------------
File : wp-admin/includes/ajax-actions.php:2020
Reason : TooManyArgument
Snippet : remove_filter('media_send_to_editor', 'image_media_send_to_editor', 10, 3)
Line : remove_filter( 'media_send_to_editor', 'image_media_send_to_editor', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment