Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (5 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/twentythirteen/functions.php

    r47122 r47808  
    479479        }
    480480
    481         if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) {
     481        if ( ! has_post_format( 'link' ) && 'post' === get_post_type() ) {
    482482            twentythirteen_entry_date();
    483483        }
     
    496496
    497497        // Post author.
    498         if ( 'post' == get_post_type() ) {
     498        if ( 'post' === get_post_type() ) {
    499499            printf(
    500500                '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
Note: See TracChangeset for help on using the changeset viewer.