[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
Mon Dec 17 21:19: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:
 Severity:  trivial       |  Resolution:
 Keywords:                |
--------------------------+--------------------
Changes (by lukbarros):

 * cc: lukbarros (removed)
 * severity:  normal => trivial


Comment:

 hi.

 you can check return...

 You should check your implementation as quoted in attached diff. Close
 this ticket that it does not proceed, will break several wp deployed when
 someone atualiazr and have implemented waiting for the return as false on
 failure.

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


More information about the wp-trac mailing list