Make WordPress Core


Ignore:
Timestamp:
05/30/2021 07:16:30 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-includes/class-wp-customize-nav-menus.php.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r49108 r51047  
    489489
    490490        $num_locations = count( get_registered_nav_menus() );
     491
    491492        if ( 1 === $num_locations ) {
    492493            $locations_description = __( 'Your theme can display menus in one location.' );
     
    680681        $locations     = get_registered_nav_menus();
    681682        $num_locations = count( $locations );
    682         if ( 1 == $num_locations ) {
     683
     684        if ( 1 === $num_locations ) {
    683685            $description = '<p>' . __( 'Your theme can display menus in one location. Select which menu you would like to use.' ) . '</p>';
    684686        } else {
Note: See TracChangeset for help on using the changeset viewer.