From 51c04912dd82476e6dc7488d3c525f53dca670a7 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 10 Feb 2026 02:39:19 +0000
Subject: [PATCH] =minor fix to edit form in CRUDSkeleton.php. Still need to determine why taxonomy fields aren't rendering
---
inc/meta/Form.php | 2 +-
inc/ui/CRUDSkeleton.php | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/inc/meta/Form.php b/inc/meta/Form.php
index 7ba1458..3b54486 100644
--- a/inc/meta/Form.php
+++ b/inc/meta/Form.php
@@ -208,7 +208,7 @@
return '';
}
- protected static function buildInput(string $content):string
+ public static function buildInput(string $content):string
{
return sprintf(
'<div class="field-input-wrapper">
diff --git a/inc/ui/CRUDSkeleton.php b/inc/ui/CRUDSkeleton.php
index 481f0e1..d15ea2e 100644
--- a/inc/ui/CRUDSkeleton.php
+++ b/inc/ui/CRUDSkeleton.php
@@ -1705,6 +1705,7 @@
}
protected function getApplicableStatuses(string $prefix) {
+ ob_start();
foreach ($this->statuses as $status) {
if ($status === 'all' || !array_key_exists($status, $this->allowedStatuses)) {
continue;
@@ -1734,5 +1735,7 @@
</label>
<?php
}
+ $out = ob_get_clean();
+ echo Form::buildInput($out);
}
}
--
Gitblit v1.10.0