﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
19656,wp_update_user() not compatible with cast-to-array WP_User objects,boonebgorges,,"Pre-3.3, it was possible to do something like this:
{{{
$user = get_userdata( $user_id );
$user->user_pass = 'mypass';
wp_update_user( get_object_vars( $user ) ); // or (array)$user
}}}

It doesn't work anymore, because the data required by wp_update_user() is stored in $user->data rather than in $user. (The second line only works because of the new and nifty magic methods.)

It would be nice to add a little backward compatibility for this method of generating params for wp_update_user(). The attached patch is one idea - maybe something like that, plus a _doing_it_wrong(), would be sufficient.",defect (bug),closed,normal,,Users,3.3,normal,worksforme,has-patch,
