Don't trigger warning when first visiting login. fixes #2901
git-svn-id: http://svn.automattic.com/wordpress/trunk@3972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7275ae28e4
commit
7c57caf5e8
|
@ -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.');
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue