From a584be05ebe01d495821dc3ca2a50d9e2bb80fd9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 7 Feb 2022 14:21:01 +0000 Subject: [PATCH] Coding Standards: Rename `$r` variable to `$args` for clarity in `walk_page_tree()`. Follow-up to [9830], [32617], [45667], [52684]. See #54728. Built from https://develop.svn.wordpress.org/trunk@52685 git-svn-id: http://core.svn.wordpress.org/trunk@52274 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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.