[wp-trac] [WordPress Trac] #36983: To empty the input field in the case of an `invalid_email`.

WordPress Trac noreply at wordpress.org
Wed Jun 1 01:50:11 UTC 2016


#36983: To empty the input field in the case of an `invalid_email`.
------------------------------------+-----------------------------
 Reporter:  tmatsuur                |      Owner:
     Type:  feature request         |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  4.5.2
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 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' ) ) ) {
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36983>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list