Objects no longer need to be explicitly passed by ref to call_user_func*() to be callable. Props wonderboymusic. fixes #21865
git-svn-id: http://core.svn.wordpress.org/trunk@22118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -475,7 +475,7 @@ function walk_nav_menu_tree( $items, $depth, $r ) {
|
||||
$walker = ( empty($r->walker) ) ? new Walker_Nav_Menu : $r->walker;
|
||||
$args = array( $items, $depth, $r );
|
||||
|
||||
return call_user_func_array( array(&$walker, 'walk'), $args );
|
||||
return call_user_func_array( array($walker, 'walk'), $args );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user