[wp-trac] [WordPress Trac] #28315: update_user_meta() updates user with ID1 if WP_Error is passed as first argument

WordPress Trac noreply at wordpress.org
Fri Aug 1 17:45:36 UTC 2014


#28315: update_user_meta() updates user with ID1 if WP_Error is passed as first
argument
--------------------------------+-----------------------------
 Reporter:  javorszky           |       Owner:  wonderboymusic
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:  4.0
Component:  Options, Meta APIs  |     Version:  3.9.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+-----------------------------
Changes (by wonderboymusic):

 * keywords:  has-patch needs-testing => has-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 There's a killer race condition in here:

 * Tests pass when run `--group 28315`
 * Tests pass when run `--group user`
 * Test fails when all tests are run, AND 2 users are set with the same
 email address

 FAIL WHALE.

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


More information about the wp-trac mailing list