Skip to content
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

Merged
merged 3 commits into from
Oct 5, 2018

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Oct 5, 2018

  • Deprecated unused $admin_role and $ignore_unverified_email parameters in the WP_Auth0_LoginManager construct method
  • Deprecated unused end_session() method in the WP_Auth0_LoginManager class
  • Deprecate $role parameter in the create_user method in the WP_Auth0_Users class
  • Deprecate $access_token, $role, and $skip_email_verified parameters in the create method of the WP_Auth0_UsersRepo class

No functional changes 👍

@joshcanhelp joshcanhelp added this to the v3-Next milestone Oct 5, 2018
@auth0 auth0 deleted a comment from codecov-io Oct 5, 2018
@joshcanhelp joshcanhelp changed the title Deprecate unused WP_Auth0_LoginManager methods and props Deprecate unused methods and props Oct 5, 2018
@joshcanhelp joshcanhelp force-pushed the deprecate-login-manager-methods-and-props branch from cd5e5c5 to 69e1f7c Compare October 5, 2018 15:22
@auth0 auth0 deleted a comment from codecov-io Oct 5, 2018
@@ -774,6 +772,28 @@ protected function die_on_login( $msg = '', $code = 0, $login_link = true ) {
);
}

/*
*
* DEPRECATED
Copy link
Contributor

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?

Copy link
Contributor Author

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() {}
Copy link
Contributor

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?

Copy link
Contributor Author

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 👍

@joshcanhelp joshcanhelp changed the title Deprecate unused methods and props Deprecate unused login methods and props Oct 5, 2018
* 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sole is role?

@auth0 auth0 deleted a comment from codecov-io Oct 5, 2018
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆗

@auth0 auth0 deleted a comment from codecov-io Oct 5, 2018
@joshcanhelp joshcanhelp merged commit 4114c6d into master Oct 5, 2018
@joshcanhelp joshcanhelp deleted the deprecate-login-manager-methods-and-props branch October 5, 2018 15:39
@joshcanhelp joshcanhelp mentioned this pull request Oct 19, 2018
6 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants