WordPress.org

Make WordPress Core

Changeset 45698


Ignore:
Timestamp:
07/28/2019 05:41:23 PM (13 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r45674 r45698  
    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 : ?>
Note: See TracChangeset for help on using the changeset viewer.