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/_Properties/potentialActionTrait.php | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/inc/managers/SEO/render/Traits/_Properties/potentialActionTrait.php b/inc/managers/SEO/render/Traits/_Properties/potentialActionTrait.php
index aa895db..5c82ad3 100644
--- a/inc/managers/SEO/render/Traits/_Properties/potentialActionTrait.php
+++ b/inc/managers/SEO/render/Traits/_Properties/potentialActionTrait.php
@@ -1,7 +1,7 @@
<?php
namespace JVBase\managers\SEO\render\Traits\_Properties;
-use JVBase\managers\SEO\render\Thing\Action;
+use JVBase\inc\managers\SEO\render\Thing\Action\Action;
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
if (!defined('ABSPATH')) {
@@ -21,7 +21,17 @@
public function setPotentialAction(Action|array $potentialAction):void
{
if (is_array($potentialAction)) {
- $potentialAction = $this->classArray('potentialAction', $potentialAction, 'JVBase\managers\SEO\render\Thing\Action');
+ $potentialAction = $this->classArray('potentialAction', $potentialAction, 'JVBase\inc\managers\SEO\render\Thing\Action\Action');
+ $potentialAction = array_map(
+ function ($item) {
+ $target = $item->getTarget();
+ $url = $target->getUrlTemplate();
+ $target->setId($url.'#entrypoint');
+
+ return $item;
+ },
+ $potentialAction
+ );
if (empty($potentialAction)) {
return;
}
--
Gitblit v1.10.0