Make WordPress Core


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

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r47198 r47219  
    114114<?php
    115115$new_admin_email = get_option( 'new_admin_email' );
    116 if ( $new_admin_email && $new_admin_email != get_option( 'admin_email' ) ) :
     116if ( $new_admin_email && get_option( 'admin_email' ) !== $new_admin_email ) :
    117117    ?>
    118118    <div class="updated inline">
     
    184184
    185185            // Add note about deprecated WPLANG constant.
    186             if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
     186            if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && WPLANG !== $locale ) {
    187187                _deprecated_argument(
    188188                    'define()',
Note: See TracChangeset for help on using the changeset viewer.