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/managers/queue/Queue.php |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/inc/managers/queue/Queue.php b/inc/managers/queue/Queue.php
index d0e359e..01bcb31 100644
--- a/inc/managers/queue/Queue.php
+++ b/inc/managers/queue/Queue.php
@@ -77,13 +77,15 @@
 	 * @param int $userId User ID
 	 * @param array $data Request data
 	 * @param array $options {
-	 *     @type string $priority     'low', 'normal', 'high'
-	 *     @type int $delay           Seconds to delay processing
-	 *     @type string $scheduled    Specific datetime to process
-	 *     @type array|string $depends_on  Operation IDs this depends on
-	 *     @type string|array $chunk_key   Key(s) to chunk (overrides registry)
-	 *     @type int $chunk_size      Chunk size (overrides registry)
+	 * @type string $priority 'low', 'normal', 'high'
+	 * @type int $delay Seconds to delay processing
+	 * @type string $scheduled Specific datetime to process
+	 * @type array|string $depends_on Operation IDs this depends on
+	 * @type string|array $chunk_key Key(s) to chunk (overrides registry)
+	 * @type int $chunk_size Chunk size (overrides registry)
 	 * }
+	 * @throws Throwable
+	 * @throws Throwable
 	 */
 	public function add(string $type, int $userId, array $data, array $options = []): array|WP_Error
 	{
@@ -207,7 +209,7 @@
 	/**
 	 * Get a specific value from an operation - backwards compatibility
 	 */
-	public function getOperationValue(string $id, string $column, bool $decodeJson = true): \static|string|int|array|null
+	public function getOperationValue(string $id, string $column, bool $decodeJson = true): static|string|int|array|null
 	{
 		$op = $this->get($id);
 		if (!$op) {
@@ -447,11 +449,12 @@
 			'infinity'
 		);
 	}
+
 	/**
 	 * @param WP_REST_Response $response
+	 * @param WP_REST_Request $request
 	 * @param string $action
-	 *
-	 * @return bool|WP_REST_Response
+	 * @return WP_REST_Response|bool
 	 */
 	public function adminActionFilter(WP_REST_Response $response, WP_REST_Request $request, string $action):WP_REST_Response|bool
 	{

--
Gitblit v1.10.0