Remove lingering instances of call time pass-by-reference, limited to instances of callable - use $this instead of &$this.

Props jdgrimes.
See #25160.



git-svn-id: https://develop.svn.wordpress.org/trunk@25254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2013-09-05 16:33:50 +00:00
parent 21511593a4
commit 16ef2c2e36
20 changed files with 112 additions and 112 deletions

View File

@@ -133,8 +133,8 @@ class testXMLParser {
$this->xml = xml_parser_create();
xml_set_object($this->xml, $this);
xml_parser_set_option($this->xml,XML_OPTION_CASE_FOLDING, 0);
xml_set_element_handler($this->xml, array(&$this, 'startHandler'), array(&$this, 'endHandler'));
xml_set_character_data_handler($this->xml, array(&$this, 'dataHandler'));
xml_set_element_handler($this->xml, array($this, 'startHandler'), array($this, 'endHandler'));
xml_set_character_data_handler($this->xml, array($this, 'dataHandler'));
$this->parse($in);
}

View File

@@ -32,7 +32,7 @@ class WPProfiler {
if (!$this->stack) {
// log all actions and filters
add_filter('all', array(&$this, 'log_filter'));
add_filter('all', array($this, 'log_filter'));
}
// reset the wpdb queries log, storing it on the profile stack if necessary
@@ -101,7 +101,7 @@ class WPProfiler {
}
if (!$this->stack) {
remove_filter('all', array(&$this, 'log_filter'));
remove_filter('all', array($this, 'log_filter'));
}
}