From a24a06002081ad71a78ffeff9072725ba39cf121 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 17 Feb 2026 20:05:31 +0000
Subject: [PATCH] =minor changes, particularly around the JVB_CHILD_URL pattern

---
 inc/managers/SEO/ConfigManager.php |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/inc/managers/SEO/ConfigManager.php b/inc/managers/SEO/ConfigManager.php
index c66bba3..7fe9718 100644
--- a/inc/managers/SEO/ConfigManager.php
+++ b/inc/managers/SEO/ConfigManager.php
@@ -72,10 +72,35 @@
 	protected function getMetaFor(string $type): array
 	{
 		$default = $this->registry->getDefaultMetaValues();
+
+		// Check if content/taxonomy config has SEO meta defined
+		$configMeta = $this->getDefaultConfig($type, 'meta');
+		if (!empty($configMeta)) {
+			$configMeta = $this->normalizeMetaKeys($configMeta);
+			$default = array_merge($default, $configMeta);
+		}
+
 		return get_option($this->metaKey, $default);
 	}
 
 	/**
+	 * Normalize content-defined meta keys to system keys
+	 */
+	private function normalizeMetaKeys(array $meta): array
+	{
+		$map = [
+			'title'       => 'metaTitle',
+			'description' => 'metaDescription',
+		];
+
+		$normalized = [];
+		foreach ($meta as $key => $value) {
+			$normalized[$map[$key] ?? $key] = $value;
+		}
+		return $normalized;
+	}
+
+	/**
 	 * Get default schema configuration for a type
 	 */
 	protected function getConfigFor(string $type): array

--
Gitblit v1.10.0