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.');
}
?>