WordPress.org

Make WordPress Core


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

    r47520 r47808  
    3030}
    3131
    32 if ( isset( $_REQUEST['action'] ) && 'adduser' == $_REQUEST['action'] ) {
     32if ( isset( $_REQUEST['action'] ) && 'adduser' === $_REQUEST['action'] ) {
    3333    check_admin_referer( 'add-user', '_wpnonce_add-user' );
    3434
     
    149149    wp_redirect( $redirect );
    150150    die();
    151 } elseif ( isset( $_REQUEST['action'] ) && 'createuser' == $_REQUEST['action'] ) {
     151} elseif ( isset( $_REQUEST['action'] ) && 'createuser' === $_REQUEST['action'] ) {
    152152    check_admin_referer( 'create-user', '_wpnonce_create-user' );
    153153
     
    332332        }
    333333    } else {
    334         if ( 'add' == $_GET['update'] ) {
     334        if ( 'add' === $_GET['update'] ) {
    335335            $messages[] = __( 'User added.' );
    336336        }
Note: See TracChangeset for help on using the changeset viewer.