Make WordPress Core


Ignore:
Timestamp:
04/03/2010 08:08:12 AM (16 years ago)
Author:
nacin
Message:

Allow "No role for this blog" to be chosen on user-edit. Add defensive checks for a few potential notices. fixes #10833

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r13956 r13961  
    5858
    5959    $editable_roles = get_editable_roles();
    60     if ( !$editable_roles[$_REQUEST['new_role']] )
     60    if ( empty( $editable_roles[$_REQUEST['new_role']] ) )
    6161        wp_die(__('You can’t give users that role.'));
    6262
Note: See TracChangeset for help on using the changeset viewer.