Skip to content

Commit

Permalink
Cannot pass script tags into inline script function
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegardiner26 committed Dec 12, 2022
1 parent 86b3e4c commit 99f9b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Broadstreet/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ public function writeInitCode()
$code .= Broadstreet_Utility::getInitCode();
}

wp_add_inline_script('broadstreet-init', "<script data-cfasync='false'>$code</script>", 'after');
wp_add_inline_script('broadstreet-init', "$code", 'after');
}

/**
Expand Down

0 comments on commit 99f9b76

Please sign in to comment.