From 86c6cd3cc099d2480932ede03c12cea01e625c94 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 26 Apr 2026 21:56:28 +0000
Subject: [PATCH] =Requiring files based on Site class settings

---
 inc/registrar/config/seo/Schema.php |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/inc/registrar/config/seo/Schema.php b/inc/registrar/config/seo/Schema.php
index 15c256e..6feef79 100644
--- a/inc/registrar/config/seo/Schema.php
+++ b/inc/registrar/config/seo/Schema.php
@@ -181,7 +181,6 @@
 					$config = $this->getConfig();
 
 					$class = JVB()->schemaHelper()::classFromConfig($config, $meta);
-
 					$class->setAuthor(JVB()->seo()->getCreator(true));
 					return $class->outputSchema();
 				}
@@ -350,6 +349,8 @@
 			error_log('[SEO]Schema::getConfig Invalid type: '.$type);
 			return [];
 		}
+		jvbDump($this->slug);
+		jvbDump($type);
 		return JVB()->schemaHelper()::getConfig($this->slug, $type);
 	}
 
@@ -399,7 +400,7 @@
 			$config['type'] = $this->defaultSchema['type'];
 			update_option(BASE.ucfirst($this->slug).'Schema', $config);
 		}
-		$class = $this->getConfig()['type'];
+		$class = $config['type'];
 		if (!class_exists($class)) {
 			error_log('[SEO]Schema::defineReference Class not found: '.$class);
 			return;
@@ -436,7 +437,7 @@
 		if (is_singular($based)){
 			$config = $this->getConfig('meta');
 			$meta = Meta::forPost(get_the_ID());
-			$title = Resolver::resolve($config['name']??$config['title'], $meta);
+			$title = Resolver::resolve($config['name']??$config['title']??'', $meta);
 		} elseif (is_post_type_archive($based) ) {
 			$config = $this->getConfig('archive');
 			$title = $config['name'];

--
Gitblit v1.10.0