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

Use array_merge to be able to override the sanitize_callback function #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

taliesinpenbardd
Copy link

Hey,
First, thanks for that class, it's really useful.
I had to use a custom sanitization callback for a textarea (using base64 to encrypt a javascript code), so it was either hijacking your code or contributing to it. Here I am :)
Hope that will be useful
Best regards,

Merge the $setting array with defaults in order to be able to use another callback if needed
Use array_merge to allow to use another sanitize_callback function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant