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

Remove all unused and deprecated advanced setting functionality #720

Merged
merged 2 commits into from
Aug 26, 2019

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Aug 16, 2019

Changes

This is a potential (though unlikely) breaking change for developers!

  • Add wp_auth0_ajax_rotate_migration_token() function hooked to wp_ajax_auth0_rotate_migration_token to handle migration token rotation action; added admin auth check.
  • Add wp_auth0_generate_token() to handle token generation.
  • Add missing docblocks
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::ADVANCED_DESCRIPTION constant
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_connections() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_custom_cdn_url() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_cdn_url() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_link_auth0_users() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_extra_conf() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::link_accounts_validation() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_ip_range_check() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_ip_ranges() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_social_twitter_key() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_social_twitter_secret() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_social_facebook_key() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_social_facebook_secret() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_passwordless_enabled() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_passwordless_method() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_metrics() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::render_advanced_description() method
  • Remove unused and deprecated WP_Auth0_Admin_Advanced::connections_validation() method
  • Remove unused WP_Auth0_Admin_Advanced::generate_token() method (using wp_auth0_generate_token() instead)
  • Remove unused WP_Auth0_Admin_Advanced::auth0_rotate_migration_token() method (using wp_auth0_ajax_rotate_migration_token() instead)

Note to reviewers: As usual, POT, PO, and MO files can be ignored, just removing now-unused translation strings.

Testing

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

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 Aug 16, 2019
@joshcanhelp joshcanhelp requested a review from a team August 16, 2019 20:07
@@ -530,13 +401,15 @@ public function render_auth0_server_domain( $args = [] ) {
);
}

public function auth0_rotate_migration_token() {
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 to wp_auth0_ajax_rotate_migration_token() above

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.

🦀

@joshcanhelp joshcanhelp merged commit bf4da18 into master Aug 26, 2019
@joshcanhelp joshcanhelp deleted the remove-advanced-settings branch September 5, 2019 22:46
@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.

None yet

2 participants