Changeset 21413 for trunk/wp-admin/users.php
- Timestamp:
- 08/03/2012 01:06:05 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r21003 r21413 112 112 wp_die(__('Cheatin’ uh?')); 113 113 114 $user = new WP_User($id);114 $user = get_userdata( $id ); 115 115 $user->set_role($_REQUEST['new_role']); 116 116 } … … 202 202 foreach ( $userids as $id ) { 203 203 $id = (int) $id; 204 $user = new WP_User($id);204 $user = get_userdata( $id ); 205 205 if ( $id == $current_user->ID ) { 206 206 echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n"; … … 303 303 foreach ( $userids as $id ) { 304 304 $id = (int) $id; 305 $user = new WP_User($id);305 $user = get_userdata( $id ); 306 306 if ( $id == $current_user->ID && !is_super_admin() ) { 307 307 echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n";
Note: See TracChangeset
for help on using the changeset viewer.