From 1aa7c404dae63c9518468fe9b579fad819f8d871 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 13 Sep 2026 18:32:43 +0000
Subject: [PATCH] =Single Event page setup done through the new Event block. Currently working on the Simple Calendar block setup

---
 inc/integrations/SyncToTerm.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/inc/integrations/SyncToTerm.php b/inc/integrations/SyncToTerm.php
index 7b2ea09..2056579 100644
--- a/inc/integrations/SyncToTerm.php
+++ b/inc/integrations/SyncToTerm.php
@@ -30,6 +30,9 @@
 	}
 	protected function handleSaveTerm(int $termID, int $tt_id, string $taxonomy, bool $update, array $args):void
 	{
+		if (isset(self::$syncing['terms'][$termID])) {
+			return;
+		}
 		$tax = jvbNoBase($taxonomy);
 		if (!in_array($tax, $this->syncTaxonomies)) {
 			return;
@@ -54,9 +57,11 @@
 		if ($isShared && $update && !$fields['_keep_synced_'.$this->service_name]) {
 			return;
 		}
+		self::$syncing['terms'][$termID] = true;
 		$this->removeSaveTerm();
 		$this->handleTheSaveTerm($termID, $update, $taxonomy, $settings);
 		$this->addSaveTerm();
+		unset(self::$syncing['terms'][$termID]);
 	}
 
 	/**

--
Gitblit v1.10.0