From 8a6d7ea5acf8f13318f51b59328aa36325bb728c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 17 Apr 2022 14:44:07 +0000 Subject: [PATCH] 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 --- wp-admin/includes/menu.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/menu.php b/wp-admin/includes/menu.php index b26bc1e26c..07c382b989 100644 --- a/wp-admin/includes/menu.php +++ b/wp-admin/includes/menu.php @@ -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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index cfef869245..b2b0218be9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.