Make WordPress Core

Ticket #39220: 39220-2.patch

File 39220-2.patch, 690 bytes (added by supercoder, 7 years ago)
  • user-new.php

     
    6363        $redirect = 'user-new.php';
    6464        $username = $user_details->user_login;
    6565        $user_id = $user_details->ID;
    66         if ( ( $username != null && !is_super_admin( $user_id ) ) && ( array_key_exists($blog_id, get_blogs_of_user($user_id)) ) ) {
     66        if ( $username != null && ( array_key_exists( $blog_id, get_blogs_of_user( $user_id ) ) ) ) {
    6767                $redirect = add_query_arg( array('update' => 'addexisting'), 'user-new.php' );
    6868        } else {
    6969                if ( isset( $_POST[ 'noconfirmation' ] ) && current_user_can( 'manage_network_users' ) ) {