[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:34:44 UTC 2012


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

Comment (by nacin):

 In [changeset:"1176/tests"]:
 {{{
 #!CommitTicketReference repository="tests" revision="1176"
 Test that wp_update_user() does not fatal error when called with a non-
 existent user ID. It should instead return WP_Error. see #22858.
 }}}

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


More information about the wp-trac mailing list