Make WordPress Core


Ignore:
Timestamp:
02/24/2023 06:21:21 AM (10 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in bundled themes' PHP files.

This addresses all the remaining WPCS warnings in bundled themes.

Includes using the correct type when checking the number of comments, as get_comments_number() returns a numeric string, not an integer.

Follow-up to [41285], [44562], [47941].

Props aristath, poena, afercia, SergeyBiryukov.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php

    r51541 r55420  
    8383            <?php
    8484            // If the user has set a custom color for the text, use that.
    85         elseif ( get_theme_support( 'custom-header', 'default-text-color' ) != $text_color ) :
     85        elseif ( get_theme_support( 'custom-header', 'default-text-color' ) !== $text_color ) :
    8686            ?>
    8787        .site-title a {
Note: See TracChangeset for help on using the changeset viewer.