Code Modernisation: Replace call_user_func_array()
in wp-includes/post-template.php
with a dynamic function call.
Props jrf. See #47678. git-svn-id: https://develop.svn.wordpress.org/trunk@46135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
45827d6e7a
commit
e17d5accc3
@ -1524,8 +1524,7 @@ function walk_page_tree( $pages, $depth, $current_page, $r ) {
|
||||
}
|
||||
}
|
||||
|
||||
$args = array( $pages, $depth, $r, $current_page );
|
||||
return call_user_func_array( array( $walker, 'walk' ), $args );
|
||||
return $walker->walk( $pages, $depth, $r, $current_page );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user