From 01e9a8e40351a87f6548a4f55de842d6f6918ad0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 15 Sep 2026 02:44:28 +0000
Subject: [PATCH] =Found little glitch with auto-adding rewrite rules to taxonomy Registrar instances where we have the post type as the base in the url rewrite
---
inc/meta/Meta.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/inc/meta/Meta.php b/inc/meta/Meta.php
index 47264d9..a84fbbb 100644
--- a/inc/meta/Meta.php
+++ b/inc/meta/Meta.php
@@ -1,7 +1,7 @@
<?php
namespace JVBase\meta;
-use JVBase\base\options;
+use JVBase\base\Options;
use JVBase\managers\Cache;
use JVBase\registrar\Registrar;
@@ -63,7 +63,7 @@
}
}
if ($this->objectType === 'options' && !isset(self::$options)) {
- self::$options = options::getInstance();
+ self::$options = Options::getInstance();
}
if ($this->objectType === 'post' && function_exists('wc_get_product') && in_array($this->content, ['product', 'product_variation'], true)) {
@@ -217,6 +217,7 @@
***************************************************************************/
public function set(string $name, mixed $value): bool {
$field = $this->getFieldConfig($name);
+
if ($field) {
if (array_key_exists('type', $field)) {
if ($field['type'] === 'repeater' && str_contains($name, ':')) {
@@ -575,6 +576,7 @@
'post' => Cache::clearPost($this->ID),
'term' => Cache::clearTerm($this->ID),
'user' => Cache::clearUser($this->ID),
+ default => Options::clear()
};
}
protected function isTaxonomy(array $field):bool
--
Gitblit v1.10.0