Support » Fixing WordPress » new error on wp dashboard login page

  • Hi.
    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 ‘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 recently.

    Original:

    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;
    }

    Does anyone know why? A preemptive error message. Before you enter your name and pass? I object to being accused of an error before having had the chance to make an error, unless there’s a good reason.

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    Please don’t post in the Alpha/Beta forum unless you’re actually testing the alpha/beta version of WordPress (not a plugin or a theme). Also, once WordPress has released a version, it’s not appropriate to post in alpha/beta and you should post in the Fixing WordPress forum:

    https://wordpress.org/support/forum/how-to-and-troubleshooting

    This post has been moved out for you.

    WordPress doesn’t have a login.php page by default. You can login via example.com/wp-login.php, or example.com/login/ or example.com/admin or example.com/wp-admin/ but not login.php

Viewing 1 replies (of 1 total)
  • The topic ‘new error on wp dashboard login page’ is closed to new replies.