From 9f672be1f7bb5f8462374ca4732d095d4f24685b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 29 Mar 2026 23:11:13 +0000
Subject: [PATCH] =minor fixes upon uploading to server
---
inc/utility/Checker.php | 47 +----------------------------------------------
1 files changed, 1 insertions(+), 46 deletions(-)
diff --git a/inc/utility/Checker.php b/inc/utility/Checker.php
index 90804fa..2cb420f 100644
--- a/inc/utility/Checker.php
+++ b/inc/utility/Checker.php
@@ -5,6 +5,7 @@
exit;
}
/**
+ * @deprecated Use Registrar.php directly
* Centralized registry for all content types, taxonomies, and user roles
* Provides a single source of truth and caching layer
*/
@@ -39,9 +40,6 @@
private function initialize(): void
{
// Build initial caches
- $this->buildContentCache();
- $this->buildTaxonomyCache();
- $this->buildUserRoleCache();
$this->buildRelationships();
// Set up WordPress hooks for cache invalidation
@@ -151,49 +149,6 @@
};
}
- /**
- * Build content type cache
- */
- private function buildContentCache(): void
- {
- $this->cache[self::CACHE_CONTENT] = JVB_CONTENT;
-
- // Add computed properties
- foreach ($this->cache[self::CACHE_CONTENT] as $slug => &$config) {
- $config['_slug'] = $slug;
- $config['_post_type'] = BASE . $slug;
- $config['_supports_dashboard'] = $this->computesDashboardSupport($config);
- $config['_is_user_type'] = $this->computesUserType($config);
- }
- }
-
- /**
- * Build taxonomy cache
- */
- private function buildTaxonomyCache(): void
- {
- $this->cache[self::CACHE_TAXONOMIES] = JVB_TAXONOMY;
-
- foreach ($this->cache[self::CACHE_TAXONOMIES] as $slug => &$config) {
- $config['_slug'] = $slug;
- $config['_taxonomy'] = BASE . $slug;
- $config['_is_hierarchical'] = $config['hierarchical'] ?? true;
- }
- }
-
- /**
- * Build user role cache
- */
- private function buildUserRoleCache(): void
- {
- $this->cache[self::CACHE_USER_ROLES] = JVB_USER;
-
- foreach ($this->cache[self::CACHE_USER_ROLES] as $slug => &$config) {
- $config['_slug'] = $slug;
- $config['_role'] = BASE . $slug;
- $config['_creatable_content'] = $this->extractCreatableContent($config);
- }
- }
/**
* Build relationships between types
--
Gitblit v1.10.0