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 | 34 +++++++++++++++++++++-------------
1 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/inc/managers/SEOMetaManager.php b/inc/managers/SEOMetaManager.php
index 44d1399..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);
}
}
@@ -556,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',
@@ -565,7 +565,8 @@
$length < 46 => $city . ' Tattoo Shop',
default => 'Tattoo Shop: ',
};
- return "{$term->name} | {$title}";
+ $name = html_entity_decode($term->name);
+ return "{$name} | {$title}";
}
/**
@@ -613,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}";
@@ -638,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";
}
/**
@@ -674,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);
@@ -685,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;
}
@@ -698,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";
}
/**
@@ -734,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;
}
@@ -755,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";
}
/**
@@ -798,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