Changeset 22273
- Timestamp:
- 10/23/2012 11:32:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r22166 r22273 230 230 $user = get_userdata( $id ); 231 231 if ( $id == $current_user->ID ) { 232 echo "<li>" . sprintf(__('ID #%1 s: %2s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n";232 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n"; 233 233 } else { 234 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"" . esc_attr($id) . "\" />" . sprintf(__('ID #%1 s: %2s'), $id, $user->user_login) . "</li>\n";234 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"" . esc_attr($id) . "\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) . "</li>\n"; 235 235 $go_delete++; 236 236 } … … 331 331 $user = get_userdata( $id ); 332 332 if ( $id == $current_user->ID && !is_super_admin() ) { 333 echo "<li>" . sprintf(__('ID #%1 s: %2s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n";333 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n"; 334 334 } elseif ( !current_user_can('remove_user', $id) ) { 335 echo "<li>" . sprintf(__('ID #%1 s: %2s <strong>You don\'t have permission to remove this user.</strong>'), $id, $user->user_login) . "</li>\n";335 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>You don\'t have permission to remove this user.</strong>'), $id, $user->user_login) . "</li>\n"; 336 336 } else { 337 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"{$id}\" />" . sprintf(__('ID #%1 s: %2s'), $id, $user->user_login) . "</li>\n";337 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"{$id}\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) . "</li>\n"; 338 338 $go_remove = true; 339 339 }
Note: See TracChangeset
for help on using the changeset viewer.