Make WordPress Core


Ignore:
Timestamp:
05/24/2020 09:14:21 AM (5 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/user-new.php

    r47198 r47853  
    3131);
    3232
    33 if ( isset( $_REQUEST['action'] ) && 'add-user' == $_REQUEST['action'] ) {
     33if ( isset( $_REQUEST['action'] ) && 'add-user' === $_REQUEST['action'] ) {
    3434    check_admin_referer( 'add-user', '_wpnonce_add-user' );
    3535
     
    4545
    4646    $user_details = wpmu_validate_user_signup( $user['username'], $user['email'] );
     47
    4748    if ( is_wp_error( $user_details['errors'] ) && $user_details['errors']->has_errors() ) {
    4849        $add_user_errors = $user_details['errors'];
     
    6263             */
    6364            do_action( 'network_user_new_created_user', $user_id );
     65
    6466            wp_redirect(
    6567                add_query_arg(
     
    7880if ( isset( $_GET['update'] ) ) {
    7981    $messages = array();
    80     if ( 'added' == $_GET['update'] ) {
     82    if ( 'added' === $_GET['update'] ) {
    8183        $edit_link = '';
    8284        if ( isset( $_GET['user_id'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.