From bdf344f19158a980a99dcca7c82c6e34e84533c0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 15 Sep 2026 03:05:03 +0000
Subject: [PATCH] =Found little glitch with auto-adding rewrite rules to taxonomy Registrar instances where we have the post type as the base in the url rewrite

---
 inc/managers/Dashboard/Dashboard.php |    1 +
 inc/blocks/SimpleCalendarBlock.php   |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/inc/blocks/SimpleCalendarBlock.php b/inc/blocks/SimpleCalendarBlock.php
index 24e8a5d..28b97c7 100644
--- a/inc/blocks/SimpleCalendarBlock.php
+++ b/inc/blocks/SimpleCalendarBlock.php
@@ -230,7 +230,7 @@
 
 			$dates = $this->getDateNavigation();
 
-			if (!is_post_type_archive($this->firstContent()) || $this->isDatedArchive()) {
+			if (is_tax() || !is_post_type_archive($this->firstContent()) || $this->isDatedArchive()) {
 				echo sprintf(
 					'<a href="%s" class="btn chip">All Events</a>',
 					get_post_type_archive_link($this->firstContent())
@@ -366,7 +366,7 @@
 		if (is_singular()) {
 			return $this->formatSingular();
 		}
-		
+
 		$items = new WP_Query($this->buildArgs($past));
 
 		$events = implode('', array_map([$this, 'formatItem'], $items->posts));
diff --git a/inc/managers/Dashboard/Dashboard.php b/inc/managers/Dashboard/Dashboard.php
index 4d7f9c4..8a1e1d8 100644
--- a/inc/managers/Dashboard/Dashboard.php
+++ b/inc/managers/Dashboard/Dashboard.php
@@ -47,6 +47,7 @@
 				'supports'		=> [ 'title', 'editor', 'custom-fields'],
 				'hierarchical'	=> true,
 				'has_archive'	=> true,
+				'public'		=> false,
 			])->setAll([
 				'system'
 			]);

--
Gitblit v1.10.0