diff --git a/wp-admin/users.php b/wp-admin/users.php index 82abb1dc40..e15c99e8ef 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 10cf50167a..d8f64f9ceb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.