Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (7 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/twentythirteen/inc/custom-header.php

    r45212 r47219  
    9191
    9292        // If no custom options for text are set, let's bail.
    93         if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) {
     93        if ( empty( $header_image ) && get_theme_support( 'custom-header', 'default-text-color' ) == $text_color ) {
    9494                return;
    9595        }
     
    137137
    138138                // If the user has set a custom color for the text, use that.
    139                 elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) :
     139                elseif ( get_theme_support( 'custom-header', 'default-text-color' ) != $text_color ) :
    140140                        ?>
    141141                .site-title,
Note: See TracChangeset for help on using the changeset viewer.