mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Allow "No role for this blog" to be chosen on user-edit. Add defensive checks for a few potential notices. fixes #10833
git-svn-id: https://develop.svn.wordpress.org/trunk@13961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ case 'promote':
|
||||
}
|
||||
|
||||
$editable_roles = get_editable_roles();
|
||||
if ( !$editable_roles[$_REQUEST['new_role']] )
|
||||
if ( empty( $editable_roles[$_REQUEST['new_role']] ) )
|
||||
wp_die(__('You can’t give users that role.'));
|
||||
|
||||
$userids = $_REQUEST['users'];
|
||||
|
||||
Reference in New Issue
Block a user