Don't trigger warning when first visiting login. fixes #2901

git-svn-id: https://develop.svn.wordpress.org/trunk@3972 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-07-05 09:45:09 +00:00
parent caee7ba3ca
commit a3301d96ab
1 changed files with 1 additions and 3 deletions

View File

@ -207,9 +207,7 @@ default:
if ( $using_cookie )
$error = __('Your session has expired.');
}
} else if ( empty($user_login) ) {
$error = __('<strong>Error</strong>: The username field is empty.');
} else if ( empty($user_pass) ) {
} else if ( $user_login || $user_pass ) {
$error = __('<strong>Error</strong>: The password field is empty.');
}
?>