Allow granting the network admin email user super admin. Props JustinSainton, garyc40. fixes #16629
git-svn-id: https://develop.svn.wordpress.org/trunk@21925 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
097c2c0e90
commit
19252e7462
|
@ -269,7 +269,7 @@ else
|
||||||
if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?>
|
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>
|
<tr><th><label for="role"><?php _e('Super Admin'); ?></label></th>
|
||||||
<td>
|
<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>
|
<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 : ?>
|
<?php else : ?>
|
||||||
<p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>
|
<p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>
|
||||||
|
|
Loading…
Reference in New Issue