Changeset 50139 for trunk/src/wp-admin/users.php
- Timestamp:
- 02/02/2021 12:15:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/users.php
r50129 r50139 212 212 check_admin_referer( 'bulk-users' ); 213 213 if ( ! current_user_can( 'edit_users' ) ) { 214 $errors = new WP_Error( 'edit_users', __( ' You can’tedit users.' ) );214 $errors = new WP_Error( 'edit_users', __( 'Sorry, you are not allowed to edit users.' ) ); 215 215 } 216 216 if ( empty( $_REQUEST['users'] ) ) { … … 224 224 foreach ( $userids as $id ) { 225 225 if ( ! current_user_can( 'edit_user', $id ) ) { 226 wp_die( __( ' You can’t edit thatuser.' ) );226 wp_die( __( 'Sorry, you are not allowed to edit this user.' ) ); 227 227 } 228 228 … … 553 553 } else { 554 554 /* translators: %s: Number of users. */ 555 $message = sprintf( __( 'Password reset links sent to %s users.' ), $reset_count );555 $message = _n( 'Password reset links sent to %s user.', 'Password reset links sent to %s users.', $reset_count ); 556 556 } 557 $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . $message. '</p></div>';557 $messages[] = '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $reset_count ) ) . '</p></div>'; 558 558 break; 559 559 case 'promote':
Note: See TracChangeset
for help on using the changeset viewer.