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:
ryan 2006-06-11 20:54:07 +00:00
parent aaf62a3482
commit ea6a8a75bc
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ function wp_insert_user($userdata) {
update_usermeta( $user_id, 'aim', $aim );
update_usermeta( $user_id, 'yim', $yim );
if ( $update ) {
if ( $update && isset($role) ) {
$user = new WP_User($user_id);
$user->set_role($role);
}