From b06ec69cfdccc7d21db87d1d0553fbc81f572e18 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 30 May 2021 19:16:30 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/class-wp-customize-nav-menus.php`. See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@51047 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-nav-menus.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-nav-menus.php b/src/wp-includes/class-wp-customize-nav-menus.php index 145ded9d7c1f..7eee959ecb56 100644 --- a/src/wp-includes/class-wp-customize-nav-menus.php +++ b/src/wp-includes/class-wp-customize-nav-menus.php @@ -488,6 +488,7 @@ public function enqueue_scripts() { $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 @@ public function customize_register() { // 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. */