From 36e537424dfd4efcbf9d6255fb9e9dc6967ddc02 Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 6 Oct 2010 19:02:43 +0000 Subject: [PATCH] Fix password reset procedure. See #5919 git-svn-id: http://svn.automattic.com/wordpress/trunk@15735 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-login.php b/wp-login.php index f1df02d374..7d8efe8f00 100644 --- a/wp-login.php +++ b/wp-login.php @@ -437,7 +437,7 @@ case 'rp' : if ( isset($_POST['pass1']) && $_POST['pass1'] != $_POST['pass2'] ) { $errors = new WP_Error('password_reset_mismatch', __('The passwords do not match.')); } elseif ( isset($_POST['pass1']) && !empty($_POST['pass1']) ) { - reset_password($user, $_POST['pass']); + reset_password($user, $_POST['pass1']); login_header(__('Password Reset'), '

' . __('Your password has been reset.') . ' ' . __('Log in') . '

'); login_footer(); exit;