From 9f672be1f7bb5f8462374ca4732d095d4f24685b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 29 Mar 2026 23:11:13 +0000
Subject: [PATCH] =minor fixes upon uploading to server
---
inc/registrar/Terms.php | 8 ++++++++
inc/blocks/FeedBlock.php | 6 ++++--
inc/managers/SEO/render/Thing/CreativeWork/VisualArtwork/VisualArtwork.php | 2 +-
inc/managers/SEO/render/Traits/_Properties/artFormTrait.php | 2 +-
inc/registrar/config/seo/Schema.php | 2 ++
base/seo.php | 3 ++-
6 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/base/seo.php b/base/seo.php
index 79c66d8..41b285d 100644
--- a/base/seo.php
+++ b/base/seo.php
@@ -75,7 +75,7 @@
public static function archive(string $type): array
{
$type = self::checkType($type, '[SchemaHelper]::archive');
- error_log('[SchemaHelper]::archive type: '.print_r($type, true));
+
if (!$type) {
return [];
}
@@ -120,6 +120,7 @@
},
'archive' => [
'type' => 'JVBase\managers\SEO\render\Thing\CreativeWork\WebPage\CollectionPage',
+ 'name' => '{{name}}'
],
default => [],
};
diff --git a/inc/blocks/FeedBlock.php b/inc/blocks/FeedBlock.php
index 9bcf1cf..0a14374 100644
--- a/inc/blocks/FeedBlock.php
+++ b/inc/blocks/FeedBlock.php
@@ -98,10 +98,12 @@
foreach ($content as $contentType) {
$registrar = Registrar::getInstance($contentType);
-
+ if (!$registrar) {
+ continue;
+ }
$contentTaxonomies = $registrar->registrar->taxonomies;
$contentTaxonomies = array_filter($contentTaxonomies, function($taxonomy) {
- return Registrar::getInstance($taxonomy)->hasFeature('show_feed');
+ return Registrar::getInstance($taxonomy)?->hasFeature('show_feed');
});
$taxonomies = array_merge($taxonomies, $contentTaxonomies);
}
diff --git a/inc/managers/SEO/render/Thing/CreativeWork/VisualArtwork/VisualArtwork.php b/inc/managers/SEO/render/Thing/CreativeWork/VisualArtwork/VisualArtwork.php
index d77b11f..c2aa08e 100644
--- a/inc/managers/SEO/render/Thing/CreativeWork/VisualArtwork/VisualArtwork.php
+++ b/inc/managers/SEO/render/Thing/CreativeWork/VisualArtwork/VisualArtwork.php
@@ -3,7 +3,7 @@
use JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork;
use JVBase\managers\SEO\render\Traits\_Properties\artEditionTrait;
-use JVBase\managers\SEO\render\Traits\_Properties\artformTrait;
+use JVBase\managers\SEO\render\Traits\_Properties\artFormTrait;
use JVBase\managers\SEO\render\Traits\_Properties\artistTrait;
use JVBase\managers\SEO\render\Traits\_Properties\artMediumTrait;
use JVBase\managers\SEO\render\Traits\_Properties\artworkSurfaceTrait;
diff --git a/inc/managers/SEO/render/Traits/_Properties/artformTrait.php b/inc/managers/SEO/render/Traits/_Properties/artFormTrait.php
similarity index 94%
rename from inc/managers/SEO/render/Traits/_Properties/artformTrait.php
rename to inc/managers/SEO/render/Traits/_Properties/artFormTrait.php
index 24b05b5..3d901fb 100644
--- a/inc/managers/SEO/render/Traits/_Properties/artformTrait.php
+++ b/inc/managers/SEO/render/Traits/_Properties/artFormTrait.php
@@ -4,7 +4,7 @@
if (!defined('ABSPATH')) {
exit;
}
-trait artformTrait {
+trait artFormTrait {
/**
* @var string e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc.
*/
diff --git a/inc/registrar/Terms.php b/inc/registrar/Terms.php
index eb15874..4c49683 100644
--- a/inc/registrar/Terms.php
+++ b/inc/registrar/Terms.php
@@ -113,6 +113,14 @@
* @var array
*/
public array $capabilities;
+
+
+ /**
+ * The URL to the icon to be used for this menu. Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme — this should begin with 'data:image/svg+xml;base64,'. Pass the name of a Dashicons helper class to use a font icon, e.g.
+ * 'dashicons-chart-pie'. Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS. Defaults to use the posts icon.
+ * @var string
+ */
+ public string $menu_icon;
/**
* Triggers the handling of rewrites for this taxonomy. Default true, using $taxonomy as slug. To prevent rewrite, set to false. To specify rewrite rules, an array can be passed with any of these keys:
* slug {string} - Customize the permastruct slug. Default $taxonomy key.
diff --git a/inc/registrar/config/seo/Schema.php b/inc/registrar/config/seo/Schema.php
index 5144fd2..22e033c 100644
--- a/inc/registrar/config/seo/Schema.php
+++ b/inc/registrar/config/seo/Schema.php
@@ -400,6 +400,8 @@
$config = $this->getConfig('archive');
$meta = Meta::forTerm(get_queried_object_id());
$title = Resolver::resolve($config['name'], $meta);
+ } else {
+ error_log('[Schema]::filterTSFOGTitle Unmatched condition: '.$this->slug);
}
return $title;
}
--
Gitblit v1.10.0