Objects no longer need to be explicitly passed by ref to call_user_func*() to be callable. Props wonderboymusic. fixes #21865

git-svn-id: https://develop.svn.wordpress.org/trunk@22118 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-10-04 20:00:16 +00:00
parent 9d85e6b9d0
commit 7ba5099795
13 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -606,7 +606,7 @@ class WP_MatchesMapRegex {
* @return string
*/
function _map() {
$callback = array(&$this, 'callback');
$callback = array($this, 'callback');
return preg_replace_callback($this->_pattern, $callback, $this->_subject);
}