[wp-trac] [WordPress Trac] #22858: wp_update_user() does not check the return of get_userdata() before calling to_array()

WordPress Trac noreply at wordpress.org
Thu Dec 27 15:36:09 UTC 2012


#22858: wp_update_user() does not check the return of get_userdata() before calling
to_array()
-----------------------------------------------+---------------------
 Reporter:  ryan                               |       Owner:  nacin
     Type:  defect (bug)                       |      Status:  closed
 Priority:  normal                             |   Milestone:  3.5.1
Component:  Users                              |     Version:  3.5
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  has-patch commit needs-unit-tests  |
-----------------------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"23210"]:
 {{{
 #!CommitTicketReference repository="" revision="23210"
 Return WP_Error from wp_update_user() on a non-existent user, avoiding a
 fatal error in the process.

 props n7studios, SergeyBiryukov.
 fixes #22858 for trunk.
 Unit tests: [11776/tests].
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22858#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list