WordPress.org

Make WordPress Core

Opened 2 years ago

#36983 new feature request

To empty the input field in the case of an `invalid_email`.

Reported by: tmatsuur Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.5.2
Component: Login and Registration Keywords:
Focuses: Cc:

Description

If fails to authenticate with an invalid ID is rewritten to blank. But, in the case of an invalid e-mail address it does not rewrite to blank.

wp-login.php:947

if ( 'invalid_username' == $errors->get_error_code() ) {

It is better to be rewritten in the blank in the case of an invalid ID or an invalid e-mail address.

if ( in_array( $errors->get_error_code(), array( 'invalid_username', 'invalid_email' ) ) ) {

Change History (0)

Note: See TracTickets for help on using tickets.