mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user