Fixed potential bug in auth
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment