4.0 Custom CSS and JS issue
-
I renewed support just to report this bug so y’all better appreciate me!
In the 4.0 update, your custom css and js is stripping the character > out of the added css/js.
So for CSS it makes many styles invalid and stops processing the stylesheet, and throws javascript errors.
If you look at the code that is rendered, it shows as > instead of >
This has broken a lot of the custom styling on my site. If you have a fix, I’ll manually fix it until the next update, but this needs to get fixed asap.
That is it renders it incorrectly as >
instead of >
Edit: I can’t even get your forum to do it incorrectly. It’s rendering in the dynamic css file and the javascript as & gt; without the space.
It’s also stripping out “\” which invalidates any custom fontawesome fonts added to CSS
Hello,
Try to edit the file inc/options/class-sanitize.php
and replace this part
case 'editor':
$val = wp_kses_post( $val );
break;
with this one
case 'editor':
break;
Kind Regards
As others have said, this works for the JS, not the backslashes in the CSS
We will release an update today and fix all these issues.