Changeset 18504 for trunk/wp-admin/users.php
- Timestamp:
- 08/04/2011 03:09:27 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/users.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r17977 r18504 217 217 foreach ( $userids as $id ) { 218 218 $id = (int) $id; 219 if ( $id == $current_user-> id&& !is_super_admin() ) {219 if ( $id == $current_user->ID && !is_super_admin() ) { 220 220 $update = 'err_admin_remove'; 221 221 continue; … … 270 270 $id = (int) $id; 271 271 $user = new WP_User($id); 272 if ( $id == $current_user-> id&& !is_super_admin() ) {272 if ( $id == $current_user->ID && !is_super_admin() ) { 273 273 echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n"; 274 274 } elseif ( !current_user_can('remove_user', $id) ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)