Allow granting the network admin email user super admin. Props JustinSainton, garyc40. fixes #16629
git-svn-id: http://core.svn.wordpress.org/trunk@21925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1513f1daea
commit
9e9d4ebd50
|
@ -269,7 +269,7 @@ else
|
|||
if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?>
|
||||
<tr><th><label for="role"><?php _e('Super Admin'); ?></label></th>
|
||||
<td>
|
||||
<?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) ) : ?>
|
||||
<?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>
|
||||
<p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p>
|
||||
<?php else : ?>
|
||||
<p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>
|
||||
|
|
Loading…
Reference in New Issue