Changeset 47156 for trunk/src/wp-login.php
- Timestamp:
- 02/01/2020 09:36:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r47122 r47156 368 368 369 369 if ( empty( $_POST['user_login'] ) || ! is_string( $_POST['user_login'] ) ) { 370 $errors->add( 'empty_username', __( '<strong>E RROR</strong>: Enter a username or email address.' ) );370 $errors->add( 'empty_username', __( '<strong>Error</strong>: Enter a username or email address.' ) ); 371 371 } elseif ( strpos( $_POST['user_login'], '@' ) ) { 372 372 $user_data = get_user_by( 'email', trim( wp_unslash( $_POST['user_login'] ) ) ); 373 373 if ( empty( $user_data ) ) { 374 $errors->add( 'invalid_email', __( '<strong>E RROR</strong>: There is no account with that username or email address.' ) );374 $errors->add( 'invalid_email', __( '<strong>Error</strong>: There is no account with that username or email address.' ) ); 375 375 } 376 376 } else { … … 397 397 398 398 if ( ! $user_data ) { 399 $errors->add( 'invalidcombo', __( '<strong>E RROR</strong>: There is no account with that username or email address.' ) );399 $errors->add( 'invalidcombo', __( '<strong>Error</strong>: There is no account with that username or email address.' ) ); 400 400 return $errors; 401 401 } … … 464 464 sprintf( 465 465 /* translators: %s: Documentation URL. */ 466 __( '<strong>E RROR</strong>: The email could not be sent. Your site may not be correctly configured to send emails. <a href="%s">Get support for resetting your password</a>.' ),466 __( '<strong>Error</strong>: The email could not be sent. Your site may not be correctly configured to send emails. <a href="%s">Get support for resetting your password</a>.' ), 467 467 esc_url( __( 'https://wordpress.org/support/article/resetting-your-password/' ) ) 468 468 ) … … 1207 1207 sprintf( 1208 1208 /* translators: 1: Browser cookie documentation URL, 2: Support forums URL. */ 1209 __( '<strong>E RROR</strong>: Cookies are blocked due to unexpected output. For help, please see <a href="%1$s">this documentation</a> or try the <a href="%2$s">support forums</a>.' ),1209 __( '<strong>Error</strong>: Cookies are blocked due to unexpected output. For help, please see <a href="%1$s">this documentation</a> or try the <a href="%2$s">support forums</a>.' ), 1210 1210 __( 'https://wordpress.org/support/article/cookies/' ), 1211 1211 __( 'https://wordpress.org/support/forums/' ) … … 1218 1218 sprintf( 1219 1219 /* translators: %s: Browser cookie documentation URL. */ 1220 __( '<strong>E RROR</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),1220 __( '<strong>Error</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ), 1221 1221 __( 'https://wordpress.org/support/article/cookies/#enable-cookies-in-your-browser' ) 1222 1222 )
Note: See TracChangeset
for help on using the changeset viewer.