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

Move actions from methods to functions for profile delete and change email #751

Merged
merged 2 commits into from
Dec 17, 2019

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Dec 16, 2019

Changes

  • Change WP_Auth0_UsersRepo::delete_auth0_object() to wp_auth0_delete_auth0_object()
  • Remove WP_Auth0_Profile_Change_Email::init()
  • Remove WP_Auth0_UsersRepo dependency from WP_Auth0_Profile_Delete_Data constructor
  • Remove WP_Auth0_Profile_Delete_Data::init()

Testing

  • This change adds unit test coverage
  • This change has been tested on WP 5.3

Checklist

  • All existing and new tests complete without errors
  • All code quality tools/guidelines in the Contribution guide have been run/followed
  • All active GitHub CI checks have passed

@joshcanhelp joshcanhelp added this to the 4.0.0 milestone Dec 16, 2019
@joshcanhelp joshcanhelp changed the title Remove deprecated and unused from profile classes Move actions from methods to functions for profile delete and change email Dec 16, 2019
*
* @param int $user_id - WordPress user ID.
*/
public function delete_auth0_object( $user_id ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved this to wp_auth0_delete_auth0_object() to avoid an unnecessary dependency injection.

@joshcanhelp joshcanhelp marked this pull request as ready for review December 16, 2019 19:56
@joshcanhelp joshcanhelp requested a review from a team December 16, 2019 19:56
@joshcanhelp joshcanhelp merged commit 6c7178e into master Dec 17, 2019
@joshcanhelp joshcanhelp deleted the remove-deprecated-from-profile-data branch December 17, 2019 21:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 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