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

Check for email update in migration-ws-get-user endpoint #674

Merged
merged 6 commits into from
Apr 22, 2019

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Apr 22, 2019

Changes

Fixes an issue where sites using a custom database could not update user email addresses from the WordPress profile.

References

WP.org support forum thread

Testing

Tests for user meta changes

Tests for email update flag

Tests for get user route

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

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 3.11.0 milestone Apr 22, 2019
@joshcanhelp joshcanhelp force-pushed the fix-email-change-for-user-migration branch from 4d2f744 to 0e215de Compare April 22, 2019 19:29
@joshcanhelp joshcanhelp marked this pull request as ready for review April 22, 2019 20:20
}

$updated_email = WP_Auth0_UsersRepo::get_meta( $user->ID, WP_Auth0_Profile_Change_Email::UPDATED_EMAIL );
if ( $updated_email === $user->data->user_email ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Return early so no error is logged.

@joshcanhelp joshcanhelp requested a review from damieng April 22, 2019 20:21
@joshcanhelp joshcanhelp merged commit c2c9eab into master Apr 22, 2019
@joshcanhelp joshcanhelp deleted the fix-email-change-for-user-migration branch April 22, 2019 20:47
@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