You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom settings fields (options) created using the auth0_settings_fields filter created as described in the documentation are not saved in the database upon saving changes in the Auth0 Settings.
There's currently no filter for the validation done here so the only way around this at the moment is to disable this validation.
Reproduction
Create a custom settings via the auth0_settings_fields filter as described here.
Go the Auth0 Settings in WP admin, input something in the custom field and Save Changes. Notice changes to the custom settings are not saved, instead the field is empty. Verify this by checking the value on the option wp_auth0_settings in the database.
Description
Custom settings fields (options) created using the
auth0_settings_fields
filter created as described in the documentation are not saved in the database upon saving changes in the Auth0 Settings.I've tracked down the issue to the new validation done to settings where non-default option keys are unset.
There's currently no filter for the validation done here so the only way around this at the moment is to disable this validation.
Reproduction
Create a custom settings via the
auth0_settings_fields
filter as described here.Go the Auth0 Settings in WP admin, input something in the custom field and Save Changes. Notice changes to the custom settings are not saved, instead the field is empty. Verify this by checking the value on the option
wp_auth0_settings
in the database.To fix, comment out lines 99 to 104 in lib/admin/WP_Auth0_Admin.php.
Update setting again in WP admin and verify the custom setting is saved.
Environment
The text was updated successfully, but these errors were encountered: