Home Forums WoodMart support forum 4.0 Custom CSS and JS issue

4.0 Custom CSS and JS issue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #136326

    Joe
    Participant

    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.

    #136327

    Joe
    Participant

    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.

    #136329

    Joe
    Participant

    It’s also stripping out “\” which invalidates any custom fontawesome fonts added to CSS

    #136354

    Artem Temos
    Keymaster

    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

    #136377

    Joe
    Participant

    As others have said, this works for the JS, not the backslashes in the CSS

    #136455

    Artem Temos
    Keymaster

    We will release an update today and fix all these issues.

Viewing 6 posts - 1 through 6 (of 6 total)