WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (11 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where static strings are involved.

This reduces the number of WordPress.PHP.StrictComparisons.LooseComparison issues in half, from 1897 to 890.

Includes minor code layout fixes for better readability.

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r47550 r47808  
    159159        $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
    160160
    161         if ( 'cyrillic' == $subset ) {
     161        if ( 'cyrillic' === $subset ) {
    162162            $subsets .= ',cyrillic,cyrillic-ext';
    163         } elseif ( 'greek' == $subset ) {
     163        } elseif ( 'greek' === $subset ) {
    164164            $subsets .= ',greek,greek-ext';
    165         } elseif ( 'vietnamese' == $subset ) {
     165        } elseif ( 'vietnamese' === $subset ) {
    166166            $subsets .= ',vietnamese';
    167167        }
Note: See TracChangeset for help on using the changeset viewer.