[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:09:55 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:  closed
 Priority:  normal                   |   Milestone:  4.0
Component:  Options, Meta APIs       |     Version:  3.9.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"29339"]:
 {{{
 #!CommitTicketReference repository="" revision="29339"
 Bail on `update_user_meta()` when `$object_id` is non-numeric.

 Adds unit test.

 Props jacklenox, wonderboymusic.
 Fixes #28315.
 }}}

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


More information about the wp-trac mailing list