Make WordPress Core


Ignore:
Timestamp:
05/16/2020 06:40:52 PM (6 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/ms.php

    r47557 r47808  
    697697        }
    698698
    699         if ( 'upgrade.php' == $pagenow ) {
     699        if ( 'upgrade.php' === $pagenow ) {
    700700                return;
    701701        }
     
    874874        $allusers = (array) $_POST['allusers'];
    875875        foreach ( $allusers as $user_id ) {
    876                 if ( '' != $user_id && '0' != $user_id ) {
     876                if ( '' !== $user_id && '0' != $user_id ) {
    877877                        $delete_user = get_userdata( $user_id );
    878878
     
    936936                                                }
    937937
    938                                                 if ( '' == $user_list ) {
     938                                                if ( '' === $user_list ) {
    939939                                                        $user_list = $admin_out;
    940940                                                }
Note: See TracChangeset for help on using the changeset viewer.