Make WordPress Core

Ticket #39220: 39220.patch

File 39220.patch, 697 bytes (added by supercoder, 8 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 ( ! is_super_admin( $user_id ) && ( 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' ) ) {