-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
Describe the bug
Trying to use the new filter introduced in 6.4.3 esc_html_dompurify_config to not escape some html tags in the group label.
To Reproduce
Steps to reproduce the behavior:
- Go to Editor (with a block or field with group label)
- Monitor the console.
- No console for the filter.
Expected behavior
acf filter 'esc_html_dompurify_config' to function.
Code
Tried with:
import domReady from '@wordpress/dom-ready';
domReady(() => {
if (typeof acf !== 'undefined') {
acf.add_filter(
'esc_html_dompurify_config',
function (config) {
console.log('Sis');
return config;
}
);
}
});and with:
acf.addFilter('esc_html_dompurify_config', function(config) {
console.log('Bro');
return config;
});Important
The script is enqueued and other filters work.
Version Information:
- WordPress 6.8.2
- PHP Version 8.2
- ACF Version 6.4.3
- Browser doesn't matter
Any help will be apreciated 👉👈
adrianmomorales and pauguriveralegret
Metadata
Metadata
Assignees
Labels
No labels