mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Coding Standards: Use strict comparison in wp-admin/users.php
.
Follow-up to [10990], [11162], [11217], [37059], [55592]. Props moinrrahmed. Fixes #58056. Built from https://develop.svn.wordpress.org/trunk@55622 git-svn-id: http://core.svn.wordpress.org/trunk@55134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
24f3ba70f5
commit
69bbd538d5
@ -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;
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55621';
|
||||
$wp_version = '6.3-alpha-55622';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user