From 36876023a4451bbcefbabfd0f1c7d8bf9bdca7fd Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 28 Apr 2010 17:01:55 +0000 Subject: [PATCH] Keep 'remember me' checked when user/pass is incorrect. props xibe, fixes #13165. git-svn-id: http://svn.automattic.com/wordpress/trunk@14280 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-login.php b/wp-login.php index ac7209fe2..ffd0f619b 100644 --- a/wp-login.php +++ b/wp-login.php @@ -572,6 +572,7 @@ default: if ( isset($_POST['log']) ) $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : ''; + $rememberme = ! empty( $_POST['rememberme'] ); ?> @@ -584,7 +585,7 @@ default:
/>