Make WordPress Core


Ignore:
Timestamp:
05/24/2020 09:14:21 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/network where static strings are involved.

Includes minor code layout fixes for better readability.

Follow-up to [47808].

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-users.php

    r47198 r47853  
    7878                                        } else {
    7979                                                $update = 'newuser';
     80
    8081                                                /**
    8182                                                 * Fires after a user has been created via the network site-users.php page.
    … …  
    179180                        check_admin_referer( 'bulk-users' );
    180181                        $userids = $_REQUEST['users'];
     182
    181183                        /** This action is documented in wp-admin/network/site-themes.php */
    182184                        $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    183                         $update  = $action;
     185
     186                        $update = $action;
    184187                        break;
    185188        }
    … …  
    191194restore_current_blog();
    192195
    193 if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
     196if ( isset( $_GET['action'] ) && 'update-site' === $_GET['action'] ) {
    194197        wp_safe_redirect( $referer );
    195198        exit();
Note: See TracChangeset for help on using the changeset viewer.