[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:37:55 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  |
-----------------------------------------------+---------------------

Comment (by nacin):

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

 Merges [23210] to the 3.5 branch.

 props n7studios, SergeyBiryukov.
 fixes #22858.
 }}}

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


More information about the wp-trac mailing list