Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (5 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/twentyeleven/functions.php

    r47198 r47219  
    320320
    321321        // If no custom options for text are set, let's bail.
    322         if ( $text_color == HEADER_TEXTCOLOR ) {
     322        if ( HEADER_TEXTCOLOR == $text_color ) {
    323323            return;
    324324        }
     
    417417            $image = get_header_image();
    418418            $style = 'display: none;';
    419             if ( $color && $color != 'blank' ) {
     419            if ( $color && 'blank' !== $color ) {
    420420                $style = 'color: #' . $color . ';';
    421421            }
Note: See TracChangeset for help on using the changeset viewer.