From b38f03c0e7218762d90fa5092696b127f24f36db Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 25 Jan 2026 07:07:26 +0000
Subject: [PATCH] =Some logical flaws in Queue.php, Queue.js, ContentExecutor.php, UploadExecutor.php - particularly with timeline ordering, frontend queue updates, etc
---
inc/rest/routes/AdminRoutes.php | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/inc/rest/routes/AdminRoutes.php b/inc/rest/routes/AdminRoutes.php
index ee71211..a32211c 100644
--- a/inc/rest/routes/AdminRoutes.php
+++ b/inc/rest/routes/AdminRoutes.php
@@ -393,7 +393,6 @@
$key = $this->cache->generateKey($args);
$cache = $this->cache->get($key);
- $cache = false;
if ($cache) {
return new WP_REST_Response($cache);
}
@@ -599,13 +598,12 @@
$query = new WP_Query($args);
$items = array_map([$this, 'formatItem'], $query->posts);
- $results = [
- 'items' => $items,
- 'has_more' => $query->max_num_pages > $args['paged'],
- 'total_items' => $query->found_posts,
- 'total_pages' => $query->max_num_pages
- ];
- return $results;
+ return [
+ 'items' => $items,
+ 'has_more' => $query->max_num_pages > $args['paged'],
+ 'total_items' => $query->found_posts,
+ 'total_pages' => $query->max_num_pages
+ ];
}
/**
@@ -672,7 +670,7 @@
break;
}
if ($hierarchical && $key === 'term_name') {
- $item[$key.'_path'] = JVB()->routes('term')->getTermPath($ID, $term->name, $term->taxonomy);
+ $item[$key.'_path'] = JVB()->routes('term')->getTermPath($ID, html_entity_decode($term->name), $term->taxonomy);
}
}
--
Gitblit v1.10.0