From b38f03c0e7218762d90fa5092696b127f24f36db Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 25 Jan 2026 07:07:26 +0000
Subject: [PATCH] =Some logical flaws in Queue.php, Queue.js, ContentExecutor.php, UploadExecutor.php - particularly with timeline ordering, frontend queue updates, etc

---
 inc/managers/SEOMetaManager.php |   37 ++++++++++++++++++++++---------------
 1 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/inc/managers/SEOMetaManager.php b/inc/managers/SEOMetaManager.php
index 2db1d41..5ccbb0e 100644
--- a/inc/managers/SEOMetaManager.php
+++ b/inc/managers/SEOMetaManager.php
@@ -174,7 +174,7 @@
                 return $this->getCityTitle($term);
 
             default:
-                return $term->name;
+                return html_entity_decode($term->name);
         }
     }
 
@@ -287,8 +287,7 @@
 
         $title_format = "{$title} | {$city}'s Best {$artist_type}";
         $title = strtok($title, ' ');
-        $title_format = (strlen($title_format) <= $this->character_limits['title']) ? $title_format : "{$title} | {$city}'s Best {$artist_type}";
-        return $title_format;
+		return (strlen($title_format) <= $this->character_limits['title']) ? $title_format : "{$title} | {$city}'s Best {$artist_type}";
     }
 
     /**
@@ -557,7 +556,7 @@
             }
         }
 
-        $length = strlen($term->name) + strlen($city);
+        $length = strlen(html_entity_decode($term->name)) + strlen($city);
 
         $title = match (true) {
             $length < 36 => $city . '\s Best Tattoo Studios',
@@ -566,7 +565,8 @@
             $length < 46 => $city . ' Tattoo Shop',
             default => 'Tattoo Shop: ',
         };
-        return "{$term->name} | {$title}";
+		$name = html_entity_decode($term->name);
+        return "{$name} | {$title}";
     }
 
     /**
@@ -614,7 +614,7 @@
         }
 
         // Build description
-        $description = "{$term->name}";
+        $description = html_entity_decode($term->name);
 
         if (!empty($established)) {
             $description .= " has been slinging ink in {$city} since {$established}";
@@ -639,7 +639,8 @@
      */
     protected function getStyleTitle(WP_Term $term):string
     {
-        return "Edmonton's Best {$term->name} Tattoo Artists";
+		$name = html_entity_decode($term->name);
+        return "Edmonton's Best {$name} Tattoo Artists";
     }
 
     /**
@@ -675,7 +676,8 @@
         }
 
         // Build description
-        $description = "{$term->name}{$alt_name_text} is a distinctive tattoo style";
+		$name = html_entity_decode($term->name);
+        $description = "{$name}{$alt_name_text} is a distinctive tattoo style";
 
         if (!empty($characteristics)) {
             $stripped = wp_strip_all_tags($characteristics);
@@ -686,7 +688,8 @@
             }
         }
 
-        $description .= " Find Edmonton artists specializing in {$term->name} tattoos.";
+		$name = html_entity_decode($term->name);
+        $description .= " Find Edmonton artists specializing in {$name} tattoos.";
 
         return $description;
     }
@@ -699,7 +702,8 @@
      */
     protected function getThemeTitle(WP_Term $term):string
     {
-        return "Edmonton's Best {$term->name} Tattoos";
+		$name = html_entity_decode($term->name);
+        return "Edmonton's Best {$name} Tattoos";
     }
 
     /**
@@ -735,15 +739,16 @@
         }
 
         // Build description
-        $description = "Explore {$term->name} tattoos";
+		$name = html_entity_decode($term->name);
+        $description = "Explore {$name} tattoos";
 
 
         $description .= ", a popular motif in Edmonton's tattoo scene.";
 
 
         $description .= $similar_text;
-
-        $description .= " Find artists specializing in {$term->name} tattoos.";
+		$name = html_entity_decode($term->name);
+        $description .= " Find artists specializing in {$name} tattoos.";
 
         return $description;
     }
@@ -756,7 +761,8 @@
      */
     protected function getCityTitle(WP_Term $term):string
     {
-        return "{$term->name} Tattoo Artists & Shops | edmonton.ink";
+		$name = html_entity_decode($term->name);
+        return "{$name} Tattoo Artists & Shops | edmonton.ink";
     }
 
     /**
@@ -799,7 +805,8 @@
         }
 
         // Build description
-        $description = "Discover {$term->name}'s vibrant tattoo scene";
+		$name = html_entity_decode($term->name);
+        $description = "Discover {$name}'s vibrant tattoo scene";
 
         if ($shop_count > 0 || $artist_count > 0) {
             $description .= " featuring";

--
Gitblit v1.10.0