Make WordPress Core

Ticket #47119: 47119.diff

File 47119.diff, 900 bytes (added by trepmal, 7 years ago)
  • wp-admin/user-edit.php

     
    417417                        ?>
    418418<tr class="user-super-admin-wrap"><th><?php _e( 'Super Admin' ); ?></th>
    419419<td>
    420                         <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>
     420                        <?php if ( 0 !== strcasecmp( $profileuser->user_email, get_site_option( 'admin_email' ) ) || ! is_super_admin( $profileuser->ID ) ) : ?>
    421421<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>
    422422<?php else : ?>
    423423<p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>