Changeset 36621
- Timestamp:
- 02/23/2016 12:04:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/users.php
r36302 r36621 249 249 $user = get_userdata( $id ); 250 250 if ( $id == $current_user->ID ) { 251 /* translators: 1: user id, 2: user login */ 251 252 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n"; 252 253 } else { 254 /* translators: 1: user id, 2: user login */ 253 255 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"" . esc_attr($id) . "\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) . "</li>\n"; 254 256 $go_delete++; … … 375 377 $user = get_userdata( $id ); 376 378 if ( $id == $current_user->ID && !is_super_admin() ) { 379 /* translators: 1: user id, 2: user login */ 377 380 echo "<li>" . sprintf(__('ID #%1$s: %2$s <strong>The current user will not be removed.</strong>'), $id, $user->user_login) . "</li>\n"; 378 381 } elseif ( !current_user_can('remove_user', $id) ) { 379 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"; 382 /* translators: 1: user id, 2: user login */ 383 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"; 380 384 } else { 385 /* translators: 1: user id, 2: user login */ 381 386 echo "<li><input type=\"hidden\" name=\"users[]\" value=\"{$id}\" />" . sprintf(__('ID #%1$s: %2$s'), $id, $user->user_login) . "</li>\n"; 382 387 $go_remove = true; … … 428 433 case 'add': 429 434 if ( isset( $_GET['id'] ) && ( $user_id = $_GET['id'] ) && current_user_can( 'edit_user', $user_id ) ) { 435 /* translators: %s: edit page url */ 430 436 $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( __( 'New user created. <a href="%s">Edit user</a>' ), 431 437 esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
Note: See TracChangeset
for help on using the changeset viewer.