From c19264ac916707096fe294d996a1b7fb85206b34 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 08 Mar 2026 19:55:31 +0000
Subject: [PATCH] =Furthering along the complete refactor. Added some basic setup for is_content taxonomies, including a page for an archive of the terms.

---
 inc/utility/Validator.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/inc/utility/Validator.php b/inc/utility/Validator.php
index f77dd52..ef8201e 100644
--- a/inc/utility/Validator.php
+++ b/inc/utility/Validator.php
@@ -1,6 +1,8 @@
 <?php
 namespace JVBase\utility;
 
+use JVBase\registrar\Registrar;
+
 if (!defined('ABSPATH')) {
 	exit;
 }
@@ -528,19 +530,19 @@
 		$this->errors = [];
 		$this->warnings = [];
 
-		foreach (JVB_CONTENT ?? [] as $slug => $config) {
+		foreach (Registrar::getRegistered('post') as $slug => $config) {
 			if (isset($config['seo'])) {
 				$this->validateTypeSEOConfig($slug, $config['seo'], 'content', $config);
 			}
 		}
 
-		foreach (JVB_TAXONOMY ?? [] as $slug => $config) {
+		foreach (Registrar::getRegistered('term') as $slug => $config) {
 			if (isset($config['seo'])) {
 				$this->validateTypeSEOConfig($slug, $config['seo'], 'taxonomy', $config);
 			}
 		}
 
-		foreach (JVB_USER ?? [] as $slug => $config) {
+		foreach (Registrar::getRegistered('user') as $slug => $config) {
 			if (isset($config['seo'])) {
 				$this->validateTypeSEOConfig($slug, $config['seo'], 'user', $config);
 			}

--
Gitblit v1.10.0