Changeset 38665
- Timestamp:
- 09/27/2016 11:51:12 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-users.php
r38657 r38665 116 116 case 'remove': 117 117 if ( ! current_user_can( 'remove_users' ) ) { 118 wp_die( __( ' You can’tremove users.' ) );118 wp_die( __( 'Sorry, you are not allowed to remove users.' ) ); 119 119 } 120 120 … … 139 139 check_admin_referer( 'bulk-users' ); 140 140 $editable_roles = get_editable_roles(); 141 if ( empty( $editable_roles[$_REQUEST['new_role']] ) ) 142 wp_die(__('You can’t give users that role.')); 141 if ( empty( $editable_roles[ $_REQUEST['new_role'] ] ) ) { 142 wp_die( __( 'Sorry, you are not allowed to give users that role.' ) ); 143 } 143 144 144 145 if ( isset( $_REQUEST['users'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.