Make sure role is set when updating. Props Mark Jaquith. fixes #2817

git-svn-id: https://develop.svn.wordpress.org/trunk@3865 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-11 20:54:07 +00:00
parent 4d93924d92
commit 1f7bcc7537
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);
}