From c132456b462186e1f01e775a001e2d668f045576 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 5 Jul 2006 01:56:20 +0000 Subject: [PATCH] Give feedback if username or password fields are empty. Props Nazgul. fixes #2901 git-svn-id: http://svn.automattic.com/wordpress/trunk@3966 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-login.php b/wp-login.php index ff80a77491..a4f898a5a1 100644 --- a/wp-login.php +++ b/wp-login.php @@ -207,6 +207,10 @@ default: if ( $using_cookie ) $error = __('Your session has expired.'); } + } else if ( empty($user_login) ) { + $error = __('Error: The username field is empty.'); + } else if ( empty($user_pass) ) { + $error = __('Error: The password field is empty.'); } ?>