[wp-trac] [WordPress Trac] #36983: Empty the username/email input field in the case of an `invalid_email` (was: To empty the input field in the case of an `invalid_email`.)

WordPress Trac noreply at wordpress.org
Mon Jul 11 16:33:31 UTC 2022


#36983: Empty the username/email input field in the case of an `invalid_email`
----------------------------------------+---------------------
 Reporter:  tmatsuur                    |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.1
Component:  Login and Registration      |     Version:  4.5
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+---------------------
Changes (by desrosj):

 * keywords:   => needs-patch good-first-bug
 * type:  feature request => defect (bug)
 * version:  4.5.2 => 4.5
 * milestone:   => 6.1


Comment:

 Hi @tmatsuur,

 My apologies that this one took so long to receive a reply!

 I've tested against the latest version of WordPress (currently 6.0), and
 it looks like the behavior is the same. When an invalid username is
 entered, the username/email field is cleared, but the field is not cleared
 when an invalid email is entered.

 The [https://core.trac.wordpress.org/browser/tags/6.0/src/wp-
 login.php#L1481 relevant code has also been changed a bit].

 I reviewed the conversation in #9568 where this was originally added (see
 [36617]), and there's no note of this being intentional, so I think making
 the behavior consistent is the right thing to do.

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


More information about the wp-trac mailing list