From a39f5f9d4fb0801f8f71ff100e8e2fba944a4557 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 7 Feb 2022 14:01:05 +0000 Subject: [PATCH] Coding Standards: Rename `$r` variable to `$args` for clarity in `walk_nav_menu_tree()`. Follow-up to [14248], [32612], [45667]. Props uzumymw. See #54728. Built from https://develop.svn.wordpress.org/trunk@52684 git-svn-id: http://core.svn.wordpress.org/trunk@52273 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu-template.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index f4638ffadb..592522878f 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -599,13 +599,13 @@ function _wp_menu_item_classes_by_context( &$menu_items ) { * * @param array $items The menu items, sorted by each menu item's menu order. * @param int $depth Depth of the item in reference to parents. - * @param stdClass $r An object containing wp_nav_menu() arguments. + * @param stdClass $args An object containing wp_nav_menu() arguments. * @return string The HTML list content for the menu items. */ -function walk_nav_menu_tree( $items, $depth, $r ) { - $walker = ( empty( $r->walker ) ) ? new Walker_Nav_Menu : $r->walker; +function walk_nav_menu_tree( $items, $depth, $args ) { + $walker = ( empty( $args->walker ) ) ? new Walker_Nav_Menu : $args->walker; - return $walker->walk( $items, $depth, $r ); + return $walker->walk( $items, $depth, $args ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index b583541b10..385a1b8d98 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52682'; +$wp_version = '6.0-alpha-52684'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.