Changeset 48059 for trunk/src/wp-includes/user.php
- Timestamp:
- 06/16/2020 03:33:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r48049 r48059 135 135 136 136 if ( empty( $username ) ) { 137 $error->add( 'empty_username', __( ' <strong>Error</strong>:The username field is empty.' ) );137 $error->add( 'empty_username', __( 'The username field is empty.' ) ); 138 138 } 139 139 140 140 if ( empty( $password ) ) { 141 $error->add( 'empty_password', __( ' <strong>Error</strong>:The password field is empty.' ) );141 $error->add( 'empty_password', __( 'The password field is empty.' ) ); 142 142 } 143 143 … … 173 173 sprintf( 174 174 /* translators: %s: User name. */ 175 __( ' <strong>Error</strong>:The password you entered for the username %s is incorrect.' ),175 __( 'The password you entered for the username %s is incorrect.' ), 176 176 '<strong>' . $username . '</strong>' 177 177 ) . … … 210 210 if ( empty( $email ) ) { 211 211 // Uses 'empty_username' for back-compat with wp_signon(). 212 $error->add( 'empty_username', __( ' <strong>Error</strong>:The email field is empty.' ) );212 $error->add( 'empty_username', __( 'The email field is empty.' ) ); 213 213 } 214 214 215 215 if ( empty( $password ) ) { 216 $error->add( 'empty_password', __( ' <strong>Error</strong>:The password field is empty.' ) );216 $error->add( 'empty_password', __( 'The password field is empty.' ) ); 217 217 } 218 218 … … 245 245 sprintf( 246 246 /* translators: %s: Email address. */ 247 __( ' <strong>Error</strong>:The password you entered for the email address %s is incorrect.' ),247 __( 'The password you entered for the email address %s is incorrect.' ), 248 248 '<strong>' . $email . '</strong>' 249 249 ) . … … 320 320 321 321 if ( $spammed ) { 322 return new WP_Error( 'spammer_account', __( ' <strong>Error</strong>:Your account has been marked as a spammer.' ) );322 return new WP_Error( 'spammer_account', __( 'Your account has been marked as a spammer.' ) ); 323 323 } 324 324 } … … 2279 2279 2280 2280 if ( ! ( $user instanceof WP_User ) ) { 2281 return new WP_Error( 'invalidcombo', __( ' <strong>Error</strong>:There is no account with that username or email address.' ) );2281 return new WP_Error( 'invalidcombo', __( 'There is no account with that username or email address.' ) ); 2282 2282 } 2283 2283 … … 2508 2508 // Check the username. 2509 2509 if ( '' === $sanitized_user_login ) { 2510 $errors->add( 'empty_username', __( ' <strong>Error</strong>:Please enter a username.' ) );2510 $errors->add( 'empty_username', __( 'Please enter a username.' ) ); 2511 2511 } elseif ( ! validate_username( $user_login ) ) { 2512 $errors->add( 'invalid_username', __( ' <strong>Error</strong>:This username is invalid because it uses illegal characters. Please enter a valid username.' ) );2512 $errors->add( 'invalid_username', __( 'This username is invalid because it uses illegal characters. Please enter a valid username.' ) ); 2513 2513 $sanitized_user_login = ''; 2514 2514 } elseif ( username_exists( $sanitized_user_login ) ) { 2515 $errors->add( 'username_exists', __( ' <strong>Error</strong>:This username is already registered. Please choose another one.' ) );2515 $errors->add( 'username_exists', __( 'This username is already registered. Please choose another one.' ) ); 2516 2516 2517 2517 } else { … … 2519 2519 $illegal_user_logins = (array) apply_filters( 'illegal_user_logins', array() ); 2520 2520 if ( in_array( strtolower( $sanitized_user_login ), array_map( 'strtolower', $illegal_user_logins ), true ) ) { 2521 $errors->add( 'invalid_username', __( ' <strong>Error</strong>:Sorry, that username is not allowed.' ) );2521 $errors->add( 'invalid_username', __( 'Sorry, that username is not allowed.' ) ); 2522 2522 } 2523 2523 } … … 2525 2525 // Check the email address. 2526 2526 if ( '' === $user_email ) { 2527 $errors->add( 'empty_email', __( ' <strong>Error</strong>:Please type your email address.' ) );2527 $errors->add( 'empty_email', __( 'Please type your email address.' ) ); 2528 2528 } elseif ( ! is_email( $user_email ) ) { 2529 $errors->add( 'invalid_email', __( ' <strong>Error</strong>:The email address isn’t correct.' ) );2529 $errors->add( 'invalid_email', __( 'The email address isn’t correct.' ) ); 2530 2530 $user_email = ''; 2531 2531 } elseif ( email_exists( $user_email ) ) { 2532 $errors->add( 'email_exists', __( ' <strong>Error</strong>: This email is already registered, please choose another one.' ) );2532 $errors->add( 'email_exists', __( 'This email is already registered. Please choose another one.' ) ); 2533 2533 } 2534 2534 … … 2575 2575 sprintf( 2576 2576 /* translators: %s: Admin email address. */ 2577 __( ' <strong>Error</strong>: Couldn’t register you… please contact the <a href="mailto:%s">site admin</a>!' ),2577 __( 'Couldn’t register you… please contact the <a href="mailto:%s">webmaster</a>!' ), 2578 2578 get_option( 'admin_email' ) 2579 2579 ) … … 2810 2810 $errors->add( 2811 2811 'user_email', 2812 __( ' <strong>Error</strong>:The email address isn’t correct.' ),2812 __( 'The email address isn’t correct.' ), 2813 2813 array( 2814 2814 'form-field' => 'email', … … 2822 2822 $errors->add( 2823 2823 'user_email', 2824 __( ' <strong>Error</strong>:The email address is already used.' ),2824 __( 'The email address is already used.' ), 2825 2825 array( 2826 2826 'form-field' => 'email',
Note: See TracChangeset
for help on using the changeset viewer.