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/blocks/MenuBlock.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/inc/blocks/MenuBlock.php b/inc/blocks/MenuBlock.php
index b1d7347..79be975 100644
--- a/inc/blocks/MenuBlock.php
+++ b/inc/blocks/MenuBlock.php
@@ -47,7 +47,7 @@
 		if (wp_is_post_revision($postID) || wp_is_post_autosave($postID)) return;
 
 		$postType = $post->post_type;
-		if ($postType !== 'product' && !in_array($postType, Registrar::getFoodMenuTypes())) {
+		if ($postType !== 'product' || !in_array($postType, Registrar::getFoodMenuTypes())) {
 			return;
 		}
 		error_log('Flushing food menu block cache');

--
Gitblit v1.10.0