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 appearance settings #721

Merged
merged 5 commits into from
Sep 3, 2019
Merged

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Aug 30, 2019

Changes

This PR removes a number of settings and their associated methods.

If you are currently using the custom JS or CSS fields in the main plugin settings or widget forms, their content will no longer be output. Please use the wp_enqueue_style and wp_enqueue_script hooks to load CSS and JS on the appropriate page.

If you are using a different language or language dictionary plugin settings, these fields have been removed but their values will be merged into the "Extra Settings" JSON when the plugin updates. Site administrators should backup these values before updating and check that the merge happened correctly after the update. Individual widgets using the language dictionary field have not been changed.

  • Remove custom JS and CSS settings from the Settings > Appearance tab and individual widget forms
  • Remove migration for language settings in 3.2.3
  • Remove language and language dictionary settings; merge existing into extra config JSON
  • Remove deprecated WP_Auth0_Lock10_Options:: get_custom_css() method
  • Remove deprecated WP_Auth0_Lock10_Options:: get_custom_js() method
  • Remove deprecated WP_Auth0_Admin_Appearance::APPEARANCE_DESCRIPTION constant
  • Remove deprecated WP_Auth0_Admin_Appearance::render_social_big_buttons() method
  • Remove deprecated WP_Auth0_Admin_Appearance::render_custom_css() method
  • Remove deprecated WP_Auth0_Admin_Appearance::render_custom_js() method
  • Remove deprecated WP_Auth0_Admin_Appearance::render_language() method
  • Remove deprecated WP_Auth0_Admin_Appearance::render_language_dictionary() method
  • Remove deprecated WP_Auth0_Admin_Appearance::render_appearance_description() method

Note for reviewers: As always, ignore the PO, MO, and POT changes here.

Testing

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

@@ -40,20 +40,6 @@ public function install_db( $version_to_install = null ) {
$this->migrate_users_data();
}

// Plugin version < 3.2.3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This conversion is problematic and ~0 tenants reporting a version this low.

$extra_conf = [];
}

$language = $options->get( 'language' );
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merge existing language settings into general "extra_conf" setting.

@joshcanhelp joshcanhelp added this to the 4.0.0 milestone Sep 3, 2019
@joshcanhelp joshcanhelp marked this pull request as ready for review September 3, 2019 16:11
@joshcanhelp joshcanhelp requested a review from a team September 3, 2019 16:17
@joshcanhelp joshcanhelp merged commit 87786e9 into master Sep 3, 2019
@joshcanhelp joshcanhelp deleted the remove-appearance-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