diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index dcf272051d..1c8b3ba600 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1521,26 +1521,26 @@ function wp_page_menu( $args = array() ) { * @param array $pages * @param int $depth * @param int $current_page - * @param array $r + * @param array $args * @return string */ -function walk_page_tree( $pages, $depth, $current_page, $r ) { - if ( empty( $r['walker'] ) ) { +function walk_page_tree( $pages, $depth, $current_page, $args ) { + if ( empty( $args['walker'] ) ) { $walker = new Walker_Page; } else { /** * @var Walker $walker */ - $walker = $r['walker']; + $walker = $args['walker']; } foreach ( (array) $pages as $page ) { if ( $page->post_parent ) { - $r['pages_with_children'][ $page->post_parent ] = true; + $args['pages_with_children'][ $page->post_parent ] = true; } } - return $walker->walk( $pages, $depth, $r, $current_page ); + return $walker->walk( $pages, $depth, $args, $current_page ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 385a1b8d98..935923e3a7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52684'; +$wp_version = '6.0-alpha-52685'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.