error on wp dashboard login page
-
Hi.
I actually posted a topic about nine months back regarding this particular issue. Unfortunately the topic is now closed to new comments.When you log in to the WP control panel (wp-login.php), the browser shows an error message. It does not prevent you from logging in, so it does not qualify as a bug. But it seems unnecessary.
I don’t think it needs a screenshot, because most people will have the error message.
Below is an extract from my original topic (nine months ago):
========================
General issue/question. Since the latest WordPress release 5.2.1 (possibly 5.2.0), you receive an error when you go to the control panel login page ‘wp-login.php’ before you type your username and password.
ERROR: The username field is empty.
ERROR: The password field is empty.I tracked the new error to several lines of code in ‘wp-includes/user.php’ that were removed.
Original (before 5.2.1):
if ( is_wp_error( $user ) ) { if ( $user->get_error_codes() == array( 'empty_username', 'empty_password' ) ) { $user = new WP_Error( '', '' ); } return $user; }
Present release:
if ( is_wp_error( $user ) ) { return $user; }
========================
Why were these lines that prevented the outputted error message taken out?
- The topic ‘error on wp dashboard login page’ is closed to new replies.