From 28637f0de38d24e9f10f4186ef522742c86951ca Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 6 Feb 2010 04:42:14 +0000 Subject: [PATCH] Show login form upon email-sent for recover/reset passwords. Props nacin. Fixes #11141 git-svn-id: https://develop.svn.wordpress.org/trunk@12981 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-login.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-login.php b/wp-login.php index b2bf97efa1..7d215929bd 100644 --- a/wp-login.php +++ b/wp-login.php @@ -208,7 +208,7 @@ function retrieve_password() { $message = apply_filters('retrieve_password_message', $message, $key); if ( $message && !wp_mail($user_email, $title, $message) ) - die('

' . __('The e-mail could not be sent.') . "
\n" . __('Possible reason: your host may have disabled the mail() function...') . '

'); + wp_die( __('The e-mail could not be sent.') . "
\n" . __('Possible reason: your host may have disabled the mail() function...') ); return true; } @@ -260,7 +260,7 @@ function reset_password($key, $login) { $message = apply_filters('password_reset_message', $message, $new_pass); if ( $message && !wp_mail($user->user_email, $title, $message) ) - die('

' . __('The e-mail could not be sent.') . "
\n" . __('Possible reason: your host may have disabled the mail() function...') . '

'); + wp_die( __('The e-mail could not be sent.') . "
\n" . __('Possible reason: your host may have disabled the mail() function...') ); wp_password_change_notification($user); @@ -575,7 +575,6 @@ default: $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : ''; ?> -

-