mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Code Modernisation: Replace call_user_func_array()
in wp-includes/nav-menu-template.php
with a dynamic function call.
Props jrf. See #47678. Built from https://develop.svn.wordpress.org/trunk@46134 git-svn-id: http://core.svn.wordpress.org/trunk@45946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6e39938fb5
commit
4b3df8e846
@ -579,9 +579,8 @@ function _wp_menu_item_classes_by_context( &$menu_items ) {
|
||||
*/
|
||||
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 $walker->walk( $items, $depth, $r );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-46133';
|
||||
$wp_version = '5.3-alpha-46134';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user