From 2e714e1958f321595977bf252e0fe5bb87cc8eda Mon Sep 17 00:00:00 2001 From: Dan0sz <18595395+Dan0sz@users.noreply.github.com> Date: Wed, 26 Feb 2025 16:10:06 +0100 Subject: [PATCH 1/2] Fixed: single quotes and ampersands would break syntax in JS on WC product pages. --- src/Integrations/WooCommerce.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Integrations/WooCommerce.php b/src/Integrations/WooCommerce.php index 5bc7149..1f849dd 100644 --- a/src/Integrations/WooCommerce.php +++ b/src/Integrations/WooCommerce.php @@ -154,6 +154,8 @@ public function track_add_to_cart_on_product_page() { if ( ! $product ) { return; + + sanitize_title(); } ?>