diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index db2bd4875f..b91b775554 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1547,15 +1547,14 @@ function walk_page_tree( $pages, $depth, $current_page, $r ) { * * @return string */ -function walk_page_dropdown_tree() { - $args = func_get_args(); +function walk_page_dropdown_tree( ...$args ) { if ( empty( $args[2]['walker'] ) ) { // the user's options are the third parameter $walker = new Walker_PageDropdown; } else { $walker = $args[2]['walker']; } - return call_user_func_array( array( $walker, 'walk' ), $args ); + return $walker->walk( ...$args ); } // diff --git a/wp-includes/version.php b/wp-includes/version.php index ec3981431e..924b4778ae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45626'; +$wp_version = '5.3-alpha-45627'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.