Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (5 years 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/includes/update.php

    r47219 r47808  
    9696    $upgrader    = new WP_Automatic_Updater;
    9797    foreach ( $updates->updates as $update ) {
    98         if ( 'autoupdate' != $update->response ) {
     98        if ( 'autoupdate' !== $update->response ) {
    9999            continue;
    100100        }
     
    286286    global $pagenow;
    287287
    288     if ( 'update-core.php' == $pagenow ) {
     288    if ( 'update-core.php' === $pagenow ) {
    289289        return;
    290290    }
Note: See TracChangeset for help on using the changeset viewer.