Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (6 years 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/twentyfourteen/content-featured-post.php

    r47550 r47808  
    1414        // Output the featured image.
    1515        if ( has_post_thumbnail() ) :
    16                 if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
     16                if ( 'grid' === get_theme_mod( 'featured_content_layout' ) ) {
    1717                        the_post_thumbnail();
    1818                } else {
Note: See TracChangeset for help on using the changeset viewer.