mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Coding Standards: Use strict comparison in wp-admin/users.php
.
Follow-up to [10990], [11162], [11217], [37059], [55592]. Props moinrrahmed. Fixes #58056. git-svn-id: https://develop.svn.wordpress.org/trunk@55622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e9c12f21e2
commit
1dbf6d7bec
@ -145,7 +145,7 @@ switch ( $wp_list_table->current_action() ) {
|
||||
}
|
||||
|
||||
// The new role of the current user must also have the promote_users cap or be a multisite super admin.
|
||||
if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap( 'promote_users' )
|
||||
if ( $id === $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap( 'promote_users' )
|
||||
&& ! ( is_multisite() && current_user_can( 'manage_network_users' ) ) ) {
|
||||
$update = 'err_admin_role';
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user