Coding Standards: Correct the `$items_count` variable in `add_menu_classes()`.

Follow-up to [53195].

See #54728.
Built from https://develop.svn.wordpress.org/trunk@53196


git-svn-id: http://core.svn.wordpress.org/trunk@52785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-04-17 14:44:07 +00:00
parent b32080c332
commit 8a6d7ea5ac
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ function add_menu_classes( $menu ) {
$first_item = false;
}
if ( $i == items_count ) { // Last item.
if ( $i == $items_count ) { // Last item.
$classes = $menu[ $order ][4];
$menu[ $order ][4] = add_cssclass( 'menu-top-last', $classes );
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-beta1-53195';
$wp_version = '6.0-beta1-53196';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.