[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
Tue Dec 11 19:14:49 UTC 2012


#22858: wp_update_user() does not check the return of get_userdata() before calling
to_array()
----------------------------+--------------------------
 Reporter:  ryan            |       Type:  defect (bug)
   Status:  new             |   Priority:  normal
Milestone:  Future Release  |  Component:  Users
  Version:                  |   Severity:  normal
 Keywords:                  |
----------------------------+--------------------------
 get_userdata() can return false, resulting in "Call to a member function
 to_array() on a non-object" when to_array() is called. This is triggered
 very rarely, but it does happen.

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


More information about the wp-trac mailing list