Changeset 3985 for trunk/wp-admin/users.php
- Timestamp:
- 07/05/2006 10:00:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r3928 r3985 129 129 130 130 if ( !current_user_can('edit_users') ) 131 die(__('You can’t edit users.'));131 wp_die(__('You can’t edit users.')); 132 132 133 133 $userids = $_POST['users']; … … 135 135 foreach($userids as $id) { 136 136 if ( ! current_user_can('edit_user', $id) ) 137 die(__('You can’t edit that user.'));137 wp_die(__('You can’t edit that user.')); 138 138 // The new role of the current user must also have edit_users caps 139 139 if($id == $current_user->id && !$wp_roles->role_objects[$_POST['new_role']]->has_cap('edit_users')) { … … 159 159 160 160 if ( !current_user_can('delete_users') ) 161 die(__('You can’t delete users.'));161 wp_die(__('You can’t delete users.')); 162 162 163 163 $userids = $_POST['users']; … … 167 167 foreach ( (array) $userids as $id) { 168 168 if ( ! current_user_can('delete_user', $id) ) 169 die(__('You can’t delete that user.'));169 wp_die(__('You can’t delete that user.')); 170 170 171 171 if($id == $current_user->id) { … … 253 253 254 254 if ( ! current_user_can('create_users') ) 255 die(__('You can’t create users.'));255 wp_die(__('You can’t create users.')); 256 256 257 257 $user_id = add_user();
Note: See TracChangeset
for help on using the changeset viewer.