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/Item.php | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/inc/meta/Item.php b/inc/meta/Item.php
index ff1fded..42efb63 100644
--- a/inc/meta/Item.php
+++ b/inc/meta/Item.php
@@ -193,10 +193,9 @@
*/
public function toArray(): array
{
- $data = [];
- foreach ($this->fields as $name => $field) {
- $data[$name] = $field->value;
- }
+ $data = array_map(function ($field) {
+ return $field->value;
+ }, $this->fields);
return $data;
}
}
--
Gitblit v1.10.0