Jake Vanderwerf
2026-01-25 b38f03c0e7218762d90fa5092696b127f24f36db
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);
            }
        }