From 99f9b76bb89911ba35e6472e73d12676ac6194a1 Mon Sep 17 00:00:00 2001 From: Steve Gardiner Date: Mon, 12 Dec 2022 13:02:04 -0500 Subject: [PATCH] Cannot pass script tags into inline script function --- Broadstreet/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Broadstreet/Core.php b/Broadstreet/Core.php index 34dddc6..f006ac7 100755 --- a/Broadstreet/Core.php +++ b/Broadstreet/Core.php @@ -555,7 +555,7 @@ public function writeInitCode() $code .= Broadstreet_Utility::getInitCode(); } - wp_add_inline_script('broadstreet-init', "", 'after'); + wp_add_inline_script('broadstreet-init', "$code", 'after'); } /**