• In the current version (0.2), the section that injects “additionalJS” onto the page is not decoded. This results in JS parsing errors such as ‘ (single-quote) getting turned into quot;

    One possible quick fix is to call htmlspecialchars_decode() prior to inserting the JS on the page.

    On line 68:
    <?php if ( isset( $add_js ) ) { echo str_replace( array( "\r", "\n" ), '', htmlspecialchars_decode($add_js) ); } ?>

    https://wordpress.org/plugins/cookie-params/

The topic ‘Bug Fix – Additional JS not decoded’ is closed to new replies.