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
This commit is contained in:
Sergey Biryukov 2022-02-07 14:01:05 +00:00
parent 3015d1ca44
commit a39f5f9d4f
2 changed files with 5 additions and 5 deletions

View File

@ -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 );
}
/**

View File

@ -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.