Forum Replies Created

Viewing 1 replies (of 1 total)
  • SVG Support version 2.3.18

    Here’s how to fix it:

    In file svg-support/functions/enqueue.php replace lines 144 and 145 with this:

    wp_add_inline_script( 'bodhi_svg_inline', "var cssTarget = \"$css_target_array\"; var ForceInlineSVGActive = \"$force_inline_svg_active\";" );

    As long as the variables are properly escaped it should work.
    wp_localize_script() should no longer be used for injecting non-localization related javascript since WordPress 4.5 introduction of the wp_add_inline_script() function.

Viewing 1 replies (of 1 total)