[wp-trac] [WordPress Trac] #19656: wp_update_user() not compatible with cast-to-array WP_User objects

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 23 20:11:53 UTC 2011


#19656: wp_update_user() not compatible with cast-to-array WP_User objects
--------------------------+------------------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by scribu):

 I don't think it's worth it, when all you need to do is replace
 {{{get_object_vars( $user )}}} with {{{get_object_vars( $user->data )}}}.

 We could make wp_update_user() accept WP_User instances, though.

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


More information about the wp-trac mailing list