[wp-trac] [WordPress Trac] #30959: race condition in wp_insert_user()

WordPress Trac noreply at wordpress.org
Fri Sep 16 20:51:56 UTC 2022


#30959: race condition in wp_insert_user()
--------------------------+---------------------
 Reporter:  hanelyp       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:
Component:  Users         |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by iandunn):

 It sounds like [https://core.trac.wordpress.org/ticket/33376#comment:8
 adding a `UNIQUE` constraint may not be possible for Core].

 r36654 added an index, which should mitigate race conditions to some
 degree. Not entirely, though, since there's a newer report in #54071.

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


More information about the wp-trac mailing list