927f7552 by Chris Boden

Fixed potential bug in auth

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