Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47122 r47219  
    6464
    6565        // If no custom color for text is set, let's bail.
    66         if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) {
     66        if ( display_header_text() && get_theme_support( 'custom-header', 'default-text-color' ) === $text_color ) {
    6767            return;
    6868        }
     
    8383            <?php
    8484            // If the user has set a custom color for the text, use that.
    85         elseif ( $text_color != get_theme_support( 'custom-header', 'default-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.