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

Change CDN URL field type #704

Merged
merged 1 commit into from
Jul 31, 2019
Merged

Conversation

joshcanhelp
Copy link
Contributor

Changes

Fixed an issue where the CDN URL is validated while being hidden, causing the settings page to fail while saving silently.

References

Internal support request.

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 changed the base branch from master to wordpress-org-plugin July 30, 2019 21:39
@joshcanhelp joshcanhelp added this to the 3.11.1 milestone Jul 30, 2019
@joshcanhelp joshcanhelp requested a review from a team July 30, 2019 21:40
@@ -579,16 +579,6 @@ public function basic_validation( $old_options, $input ) {
$input['auth0_implicit_workflow'] = ( isset( $input['auth0_implicit_workflow'] ) ? $input['auth0_implicit_workflow'] : 0 );
$input['force_https_callback'] = ( isset( $input['force_https_callback'] ) ? $input['force_https_callback'] : 0 );

$input['custom_cdn_url'] = empty( $input['custom_cdn_url'] ) ? 0 : 1;
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 lib/admin/WP_Auth0_Admin_Appearance.php

@@ -27,7 +27,7 @@ class TestOptionLockCdn extends WP_Auth0_Test_Case {
*/
public static function setUpBeforeClass() {
parent::setUpBeforeClass();
self::$admin = new WP_Auth0_Admin_Advanced( self::$opts, new WP_Auth0_Routes( self::$opts ) );
self::$admin = new WP_Auth0_Admin_Appearance( self::$opts, new WP_Auth0_Routes( self::$opts ) );
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was testing the wrong class (setting methods were moved and deprecated).

@joshcanhelp joshcanhelp changed the title Fix cdn url field type Change CDN URL field type Jul 30, 2019
@joshcanhelp joshcanhelp merged commit 5e5e99b into wordpress-org-plugin Jul 31, 2019
@joshcanhelp joshcanhelp deleted the fix-cdn-url-field-type branch July 31, 2019 01:08
@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