This can be fixed with a filter. Try this and let me know if it fixes it and I’ll patch the plugin.
add_filter( 'ot_allowed_html', function( $tags ) {
$tags['noscript'] = array();
return $tags;
}, 10, 1 );
OptionTree version 2.7.1
fixes both the missing noscript
tag and iframe
style
attribute for users with unfiltered_html
capabilities. Version 2.7.1
should be available by the top of the hour. Thank you for finding the issue.
Thanks for the updating the plugin. We have updated the plugin and still getting same issue for style
attribute only. Please see the screenshot for more information – https://hmp.me/ck08
-
This reply was modified 5 years, 2 months ago by
fxvisuals.
The isn’t really as much an OptionTree issue as it is Core not adding display
and visibility
to the style attributes array in the safe_style_css
filter. If you changed the style to something else it works. However, I’ve patched it and I’m deploying another version in a few minutes that I know works. And it will make it easier to extend if someone needs other attributes besides those two and the ones here https://core.trac.wordpress.org/browser/tags/5.1.1/src/wp-includes/kses.php#L2068
@fxvisuals It should be available for download shortly. Please test it and let me know.
@derek we have updated the latest plugin and it’s working fine now.
Thanks for fixing it.