diff --git src/wp-includes/user.php src/wp-includes/user.php
index 9a685b9..b57848f 100644
|
|
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 src/wp-login.php src/wp-login.php
index 6415b15..6f7ed5c 100644
|
|
switch ( $action ) { |
972 | 972 | $errors = new WP_Error(); |
973 | 973 | } |
974 | 974 | |
| 975 | if ( empty( $_POST ) && $errors->get_error_codes() === array( 'empty_username', 'empty_password' ) ) { |
| 976 | $errors = new WP_Error( '', '' ); |
| 977 | } |
| 978 | |
975 | 979 | if ( $interim_login ) { |
976 | 980 | if ( ! $errors->get_error_code() ) { |
977 | 981 | $errors->add( 'expired', __( 'Your session has expired. Please log in to continue where you left off.' ), 'message' ); |