From c19264ac916707096fe294d996a1b7fb85206b34 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 08 Mar 2026 19:55:31 +0000
Subject: [PATCH] =Furthering along the complete refactor. Added some basic setup for is_content taxonomies, including a page for an archive of the terms.
---
inc/rest/routes/ContentRoutes.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/inc/rest/routes/ContentRoutes.php b/inc/rest/routes/ContentRoutes.php
index 7f12b55..ea70a8b 100644
--- a/inc/rest/routes/ContentRoutes.php
+++ b/inc/rest/routes/ContentRoutes.php
@@ -280,8 +280,9 @@
// Run query
$query = new WP_Query($args);
+ $registrar = Registrar::getInstance(str_replace('-', '_', $this->post_type));
+ $this->fields = $registrar->getFields()??[];
- $this->fields = Registrar::getFieldsFor(str_replace('-', '_', $this->post_type));
$this->taxonomies = $this->getTaxonomies($this->post_type);
$posts = array_map([$this, 'prepareItem'], $query->posts);
@@ -480,7 +481,7 @@
$get = [];
$fields = (empty($fields)) ? $this->fields : $fields;
$get = $this->getUploadFields($fields);
-
+ error_log('Upload fields: '.print_r($get, true));
if (!empty($get)) {
$actualGet = array_map(function($fieldName) {
--
Gitblit v1.10.0