diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index eb8f0a1..3414da0 100644
a
|
b
|
function wp_signon( $credentials = array(), $secure_cookie = '' ) { |
95 | 95 | $user = wp_authenticate( $credentials['user_login'], $credentials['user_password'] ); |
96 | 96 | |
97 | 97 | if ( is_wp_error( $user ) ) { |
98 | | if ( $user->get_error_codes() == array( 'empty_username', 'empty_password' ) ) { |
99 | | $user = new WP_Error( '', '' ); |
100 | | } |
101 | | |
102 | 98 | return $user; |
103 | 99 | } |
104 | 100 | |
diff --git a/src/wp-login.php b/src/wp-login.php
index 72fcae2..7b1c9e2 100644
a
|
b
|
switch ( $action ) { |
1006 | 1006 | if ( ! empty( $_GET['loggedout'] ) || $reauth ) { |
1007 | 1007 | $errors = new WP_Error(); |
1008 | 1008 | } |
| 1009 | |
| 1010 | if ( empty( $_POST ) && $errors->get_error_codes() === array( 'empty_username', 'empty_password' ) ) { |
| 1011 | $errors = new WP_Error( '', '' ); |
| 1012 | } |
1009 | 1013 | |
1010 | 1014 | if ( $interim_login ) { |
1011 | 1015 | if ( ! $errors->has_errors() ) { |