From 715e26a9eb219808d5c899d418e1d596f9318f61 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 22 Jun 2026 16:59:19 +0000
Subject: [PATCH] =Debugging and implementing the Checkout.js logic. Will be uploading to test integration with square next.

---
 cleanup.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/cleanup.php b/cleanup.php
index 8aef5fa..1fd7797 100644
--- a/cleanup.php
+++ b/cleanup.php
@@ -57,9 +57,11 @@
 	}
 	wp_dequeue_script('wp-block-template-skip-link');
 
-	// Remove WordPress 6.5+ script modules
-	wp_dequeue_script_module('@wordpress/interactivity');
-	wp_deregister_script_module('@wordpress/interactivity');
+	if (!is_plugin_active('woocommerce/woocommerce.php')) {
+		wp_dequeue_script_module('@wordpress/interactivity');
+		wp_deregister_script_module('@wordpress/interactivity');
+	}
+
 	wp_dequeue_script_module('@wordpress/block-library/navigation/view');
 	wp_deregister_script_module('@wordpress/block-library/navigation/view');
 

--
Gitblit v1.10.0