From fc6c57b18056d28f137743df39f8125a64c66cce Mon Sep 17 00:00:00 2001 From: dd32 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: http://svn.automattic.com/wordpress/trunk@12981 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-login.php b/wp-login.php index b2bf97efa..7d215929b 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'])) : ''; ?> -

-