Make sure role is set when updating. Props Mark Jaquith. fixes #2817
git-svn-id: http://svn.automattic.com/wordpress/trunk@3865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aaf62a3482
commit
ea6a8a75bc
|
@ -102,7 +102,7 @@ function wp_insert_user($userdata) {
|
||||||
update_usermeta( $user_id, 'aim', $aim );
|
update_usermeta( $user_id, 'aim', $aim );
|
||||||
update_usermeta( $user_id, 'yim', $yim );
|
update_usermeta( $user_id, 'yim', $yim );
|
||||||
|
|
||||||
if ( $update ) {
|
if ( $update && isset($role) ) {
|
||||||
$user = new WP_User($user_id);
|
$user = new WP_User($user_id);
|
||||||
$user->set_role($role);
|
$user->set_role($role);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue