Changeset 39588 for trunk/src/wp-admin/users.php
- Timestamp:
- 12/12/2016 09:41:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/users.php
r39534 r39588 322 322 foreach ( $userids as $id ) { 323 323 $id = (int) $id; 324 if ( $id == $current_user->ID && !is_super_admin() ) {325 $update = 'err_admin_remove';326 continue;327 }328 324 if ( !current_user_can('remove_user', $id) ) { 329 325 $update = 'err_admin_remove'; … … 378 374 $id = (int) $id; 379 375 $user = get_userdata( $id ); 380 if ( $id == $current_user->ID && !is_super_admin() ) { 381 /* translators: 1: user id, 2: user login */ 382 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n"; 383 } elseif ( !current_user_can('remove_user', $id) ) { 376 if ( ! current_user_can( 'remove_user', $id ) ) { 384 377 /* translators: 1: user id, 2: user login */ 385 378 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>Sorry, you are not allowed to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";
Note: See TracChangeset
for help on using the changeset viewer.