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/Repeater.php |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/inc/meta/Repeater.php b/inc/meta/Repeater.php
index ae1622e..a387296 100644
--- a/inc/meta/Repeater.php
+++ b/inc/meta/Repeater.php
@@ -25,7 +25,7 @@
 		$this->meta = $meta;
 		$this->name = $name;
 		$this->data = $meta->get($name) ?: [];
-		$this->config = $meta->config($name) ?? [];
+		$this->config = $meta->getFieldConfig($name) ?? [];
 
 		// Ensure data is array
 		if (!is_array($this->data)) {
@@ -111,16 +111,14 @@
 	/**
 	 * Set field value in specific row
 	 */
-	public function setField(int $index, string $field, mixed $value): self
+	public function setField(int $index, string $field, mixed $value):bool
 	{
 		if (!isset($this->data[$index])) {
 			$this->data[$index] = [];
 		}
 
 		$this->data[$index][$field] = $value;
-		$this->sync();
-
-		return $this;
+		return $this->sync();
 	}
 
 	/**
@@ -374,9 +372,9 @@
 	/**
 	 * Sync data back to Meta instance
 	 */
-	protected function sync(): void
+	protected function sync(): bool
 	{
-		$this->meta->set($this->name, $this->data);
+		return $this->meta->set($this->name, $this->data);
 	}
 
 	/**

--
Gitblit v1.10.0