From 27fb820ae9081fb56957cf75e79eccd8a99edd52 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 14 Feb 2026 19:14:48 +0000
Subject: [PATCH] =minor css changes, queue merge logic restructured, and double checking changes actually changed in cRUD.js before sending to server

---
 inc/managers/SEO/SchemaOutputManager.php |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/inc/managers/SEO/SchemaOutputManager.php b/inc/managers/SEO/SchemaOutputManager.php
index f06ab10..9c4a545 100644
--- a/inc/managers/SEO/SchemaOutputManager.php
+++ b/inc/managers/SEO/SchemaOutputManager.php
@@ -121,7 +121,6 @@
 	public function filterTitle(string $title, ?array $args): string
 	{
 		if ($args !== null) {
-			// Not in the loop (admin, etc.)
 			return $title;
 		}
 
@@ -139,7 +138,15 @@
 		$resolver = $this->getResolver();
 		$customTitle = $resolver->resolve($metaConfig['metaTitle']);
 
-		return $customTitle ?: $title;
+		if (!$customTitle) {
+			return $title;
+		}
+
+		// Strip trailing site name — TSF adds its own branding
+		$siteName = get_bloginfo('name');
+		$customTitle = preg_replace('/\s*[|\-–—]\s*' . preg_quote($siteName, '/') . '\s*$/i', '', $customTitle);
+
+		return $customTitle;
 	}
 
 	/**

--
Gitblit v1.10.0