Make WordPress Core

Opened 6 years ago

Last modified 3 years ago

#36983 new feature request

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

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


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.


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.