From 5232f2be96986debe2cba7fd127b677a1d6e00c0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 30 May 2021 19:18:01 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/class-wp-customize-nav-menus.php`. See #52627. Built from https://develop.svn.wordpress.org/trunk@51047 git-svn-id: http://core.svn.wordpress.org/trunk@50656 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-nav-menus.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-nav-menus.php b/wp-includes/class-wp-customize-nav-menus.php index 145ded9d7c..7eee959ecb 100644 --- a/wp-includes/class-wp-customize-nav-menus.php +++ b/wp-includes/class-wp-customize-nav-menus.php @@ -488,6 +488,7 @@ final class WP_Customize_Nav_Menus { $temp_nav_menu_item_setting = new WP_Customize_Nav_Menu_Item_Setting( $this->manager, 'nav_menu_item[-1]' ); $num_locations = count( get_registered_nav_menus() ); + if ( 1 === $num_locations ) { $locations_description = __( 'Your theme can display menus in one location.' ); } else { @@ -679,7 +680,8 @@ final class WP_Customize_Nav_Menus { // Menu locations. $locations = get_registered_nav_menus(); $num_locations = count( $locations ); - if ( 1 == $num_locations ) { + + if ( 1 === $num_locations ) { $description = '

' . __( 'Your theme can display menus in one location. Select which menu you would like to use.' ) . '

'; } else { /* translators: %s: Number of menu locations. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 4bd6e18eee..d2f689ed70 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51046'; +$wp_version = '5.8-alpha-51047'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.