diff --git src/wp-login.php src/wp-login.php
index 5ecf5f0dbf..ec835b782f 100644
|
|
|
function login_header( $title = 'Log In', $message = '', $wp_error = null ) { |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | // Shake it! |
| 48 | | $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' ); |
| | 48 | $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password', 'email_disabled' ); |
| 49 | 49 | /** |
| 50 | 50 | * Filters the error codes array for shaking the login form. |
| 51 | 51 | * |
| … |
… |
function retrieve_password() { |
| 426 | 426 | $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data ); |
| 427 | 427 | |
| 428 | 428 | if ( $message && ! wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) { |
| 429 | | wp_die( __( 'The email could not be sent. Possible reason: your host may have disabled the mail() function.' ) ); |
| | 429 | /* translators: URL to support page for resetting your password */ |
| | 430 | $support = __( 'https://wordpress.org/support/article/resetting-your-password/' ); |
| | 431 | $errors->add( |
| | 432 | 'email_disabled', |
| | 433 | sprintf( |
| | 434 | __( '<strong>ERROR</strong>: The e-mail could not be sent. Possible reason: your server may not be correctly configured to send e-mails. <a href="%s">Get support for resetting your password</a>.' ), |
| | 435 | esc_url( $support ) |
| | 436 | ) |
| | 437 | ); |
| | 438 | return $errors; |
| 430 | 439 | } |
| 431 | 440 | |
| 432 | 441 | return true; |