Users: Use case-insensitive email address comparison when checking whether "Grant this user super admin privileges" checkbox should be displayed on Edit User screen.
Props trepmal. Fixes #47119. git-svn-id: https://develop.svn.wordpress.org/trunk@45698 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4dbc842cac
commit
aee18a2e09
@ -417,7 +417,7 @@ endif; //!IS_PROFILE_PAGE
|
||||
?>
|
||||
<tr class="user-super-admin-wrap"><th><?php _e( 'Super Admin' ); ?></th>
|
||||
<td>
|
||||
<?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>
|
||||
<?php if ( 0 !== strcasecmp( $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
Block a user