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-admin/network/settings.php

    r47198 r47219  
    166166                    <?php
    167167                    $new_admin_email = get_site_option( 'new_admin_email' );
    168                     if ( $new_admin_email && $new_admin_email != get_site_option( 'admin_email' ) ) :
     168                    if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) :
    169169                        ?>
    170170                        <div class="updated inline">
     
    258258                    ?>
    259259                    <textarea name="limited_email_domains" id="limited_email_domains" aria-describedby="limited-email-domains-desc" cols="45" rows="5">
    260 <?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
     260<?php echo esc_textarea( '' == $limited_email_domains ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
    261261                    <p class="description" id="limited-email-domains-desc">
    262262                        <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ); ?>
Note: See TracChangeset for help on using the changeset viewer.