[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 Aug 18 09:59:46 UTC 2023


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

Comment (by rajinsharwar):

 Adding another updated PR with the changes in wp-admin/includes/user.php.
 Because there are some warnings shown while trying to create a user with
 the same email as the username if we don't make these updated changes.
 Requesting a review. Added the unit tests from @costdev in the PR as well,
 to keep it all in one place.

 [[Image(https://img001.prntscr.com/file/img001/RAREwFy2TTO-
 fSMX3RPg7A.png)]]

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


More information about the wp-trac mailing list