diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index cbd6fcdef9..1910e1737e 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -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 ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 46853eeac0..42f955d78a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.