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/managers/CRUDManager.php | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/inc/managers/CRUDManager.php b/inc/managers/CRUDManager.php
index 3cbf9a7..4051bc6 100644
--- a/inc/managers/CRUDManager.php
+++ b/inc/managers/CRUDManager.php
@@ -75,7 +75,12 @@
$this->skeleton->setCalendar();
}
- $this->skeleton->setDefaultStatus();
+ if ($this->registrar && $this->registrar->getType() === 'post') {
+ $this->skeleton->setDefaultStatus();
+ } else {
+ $this->skeleton->setStatuses([]);
+ }
+
// Views
$this->skeleton
@@ -87,7 +92,7 @@
$this->skeleton->addDateFilter();
$this->skeleton->addCustomDateRange($this->addDateRanges());
if (!empty($this->taxonomies)) {
- $this->skeleton->addTaxonomyFilter(array_keys($this->taxonomies), 'user');
+ $this->skeleton->addTaxonomyFilter($this->taxonomies, 'user');
}
// Capabilities
@@ -154,7 +159,7 @@
* Initialize taxonomies from WordPress config
*/
protected function initTaxonomies(): void {
- $this->taxonomies = $this->registrar->registrar->taxonomies;
+ $this->taxonomies = ($this->registrar->getType() === 'post') ? $this->registrar->registrar->taxonomies : [];
}
/**
--
Gitblit v1.10.0