From 894ec8a6f2ac62edbac7b3b6a88e3666f335c673 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 15 May 2026 15:08:42 +0000
Subject: [PATCH] =Refactor of CustomBlocks.php to move a majority of the logic to the pre_render_field instead of render_field, and adding support for more blocks

---
 inc/integrations/Integrations.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/inc/integrations/Integrations.php b/inc/integrations/Integrations.php
index 54f4cf4..3a6643a 100644
--- a/inc/integrations/Integrations.php
+++ b/inc/integrations/Integrations.php
@@ -319,7 +319,8 @@
 		if (!$taxonomies) {
 			// Combine both content and taxonomy filtering
 			$taxonomies = [];
-			foreach (Registrar::getFeatured('is_content', 'term') as $registrar) {
+			foreach (Registrar::getFeatured('is_content', 'term') as $type) {
+				$registrar = Registrar::getInstance($type);
 				if ($registrar->hasIntegration($this->service_name)) {
 					$taxonomies[] = $registrar->getSlug();
 				}

--
Gitblit v1.10.0