WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (19 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where static strings are involved.

This reduces the number of WordPress.PHP.StrictComparisons.LooseComparison issues in half, from 1897 to 890.

Includes minor code layout fixes for better readability.

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r47600 r47808  
    205205        <?php if ( isset( $_GET['error'] ) ) : ?>
    206206<div class="notice notice-error">
    207             <?php if ( 'new-email' == $_GET['error'] ) : ?>
     207            <?php if ( 'new-email' === $_GET['error'] ) : ?>
    208208    <p><?php _e( 'Error while saving the new email address. Please try again.' ); ?></p>
    209209    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.