-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate unused login methods and props #557
Conversation
cd5e5c5
to
69e1f7c
Compare
@@ -774,6 +772,28 @@ protected function die_on_login( $msg = '', $code = 0, $login_link = true ) { | |||
); | |||
} | |||
|
|||
/* | |||
* | |||
* DEPRECATED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this flying on its own away from a valid method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not, just a section indicator, everything below is deprecated
public function redirect_to_help() { | ||
|
||
} | ||
public function redirect_to_help() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it worthy to add the deprecated
docblock here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure what to do with it yet. Serves no purpose but is used in a hook above. Will address when this class gets a once-over 👍
lib/WP_Auth0_Users.php
Outdated
* Create a WordPress user with Auth0 data. | ||
* | ||
* @param object $userinfo - User profile data from Auth0. | ||
* @param null|boolean $role - Set the sole as administrator - @deprecated - 3.8.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sole is role?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆗
$admin_role
and$ignore_unverified_email
parameters in theWP_Auth0_LoginManager
construct methodend_session()
method in theWP_Auth0_LoginManager
class$role
parameter in thecreate_user
method in theWP_Auth0_Users
class$access_token
,$role
, and$skip_email_verified
parameters in thecreate
method of theWP_Auth0_UsersRepo
classNo functional changes 👍