[wp-trac] [WordPress Trac] #57394: wp_insert_user allows the new user to have a username equal to an already registered email

WordPress Trac noreply at wordpress.org
Fri Feb 17 10:13:50 UTC 2023


#57394: wp_insert_user allows the new user to have a username equal to an already
registered email
--------------------------------------+------------------------------
 Reporter:  buutqn                    |       Owner:  adamsilverstein
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.2
Component:  Login and Registration    |     Version:  6.1.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"55360" 55360]:
 {{{
 #!CommitTicketReference repository="" revision="55360"
 Users: Correct the error code in `wp_insert_user()` when login matches an
 existing email.

 Move the test next to the other tests for `user_login`.

 Follow-up to [55358].

 See #57394.
 }}}

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


More information about the wp-trac mailing list