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/registrar/Registrar.php | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/inc/registrar/Registrar.php b/inc/registrar/Registrar.php
index 7b6e7ab..69a4622 100644
--- a/inc/registrar/Registrar.php
+++ b/inc/registrar/Registrar.php
@@ -238,6 +238,9 @@
private static array $instances = [];
protected string $based;
+
+
+ protected static array $processing = ['terms'=>[],'posts'=>[],'users' =>[]];
private function __construct(string $slug, string $singular, string $plural, string $type) {
$this->slug = $slug;
$this->based = jvbCheckBase($slug);
@@ -1060,14 +1063,12 @@
}
public function addTermUpdatedMeta(int $termId):void
{
-
- static $processing = [];
- if (isset($processing[$termId])) return;
- $processing[$termId] = true;
+ if (self::$processing['terms'][$termId]) return;
+ self::$processing['terms'][$termId] = true;
update_term_meta($termId, BASE . 'date_modified', date('Y-m-d H:i:s'));
- unset($processing[$termId]);
+ unset(self::$processing['terms'][$termId]);
}
public function renderContent(string $content, array $block):string
--
Gitblit v1.10.0