mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Give feedback if username or password fields are empty. Props Nazgul. fixes #2901
git-svn-id: https://develop.svn.wordpress.org/trunk@3966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -207,6 +207,10 @@ 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) ) {
|
||||
$error = __('<strong>Error</strong>: The password field is empty.');
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
Reference in New Issue
Block a user