From 3baf3d2545ba6ece6b74a64c0def59bd0774cf54 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 10 Jun 2026 16:34:12 +0000
Subject: [PATCH] =Laid the groundwork for an improved DashboardManager.php setup. Have to put it aside so I can get the dang Northeh done though.

---
 inc/managers/SEO/render/Traits/ThingSchema.php |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/inc/managers/SEO/render/Traits/ThingSchema.php b/inc/managers/SEO/render/Traits/ThingSchema.php
index 7124007..d41ad97 100644
--- a/inc/managers/SEO/render/Traits/ThingSchema.php
+++ b/inc/managers/SEO/render/Traits/ThingSchema.php
@@ -31,16 +31,17 @@
 		nameTrait, ownerTrait, potentialActionTrait, sameAsTrait, subjectOfTrait, urlTrait;
 
 	protected string $id;
-
+	protected bool $showID = true;
 	protected array $ignore = [
 		'mappedMethods',
 		'ignore',
-		'id'
+		'id',
+		'showID',
 	];
 	public function outputSchema():array
 	{
 		global $wp;
-		$current = home_url( add_query_arg( $_GET, $wp->request ) );
+		$current = get_home_url(null, add_query_arg( $_GET, $wp->request ) );
 		$id = (isset($this->id)) ? $this->id : $current.'/#'.strtolower($this->getTypeName());
 		$elements = array_map(
 			function ($value) {
@@ -65,7 +66,7 @@
 					$value = $value->getTime();
 				}else if (!is_string($value)) {
 					if (JVB_TESTING && !is_numeric($value)) {
-						error_log('Normal value? '.print_r($value, true));
+//						error_log('Normal value? '.print_r($value, true));
 					}
 				}
 
@@ -76,9 +77,10 @@
 			}, ARRAY_FILTER_USE_KEY)
 		);
 
-		return  array_merge([
+		$id = $this->showID ? ['@id' => $id] : [];
+
+		return  array_merge($id, [
 			'@type'	=> $this->getTypeName(),
-			'@id'	=> $id,
 		], array_filter($elements));
 	}
 
@@ -161,4 +163,9 @@
 		);
 
 	}
+
+	public function showID(bool $showIt = true):void
+	{
+		$this->showID = $showIt;
+	}
 }

--
Gitblit v1.10.0