Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
927f7552
authored
2010-12-01 17:15:06 +0000
by
Chris Boden
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed potential bug in auth
1 parent
f24204bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
com/Auth/Auth.php
com/Auth/Auth.php
View file @
927f755
...
...
@@ -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
...
...
Please
register
or
sign in
to post a comment