927f7552 by Chris Boden

Fixed potential bug in auth

1 parent f24204bb
......@@ -206,7 +206,7 @@ function activate($key, $password_validation = null) {
add_user_to_blog($current_blog->blog_id, $id, get_site_option('default_user_role', 'subscriber'));
} else {
$user = new WP_User($id);
$user->add_role(get_site_option('default_role', 'subscriber'));
$user->set_role(get_site_option('default_role', 'subscriber'));
}
// If use these, fix variables, they're wrong
......