WordPress.org

Make WordPress Core

Changeset 39946


Ignore:
Timestamp:
01/24/17 12:02:25 (4 months ago)
Author:
flixos90
Message:

Multisite: Remove unnecessary is_super_admin() check when adding an existing user to a site.

Prior to this change, a super admin user that is added to a site who they are already a member of would still get reinvited.

Props supercoder.
Fixes #39220. See #37616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r39935 r39946  
    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 { 
Note: See TracChangeset for help on using the changeset viewer.