From f859e64a57c624ff2daa2b21355f65a49fd4807d Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 29 Aug 2026 03:09:12 +0000
Subject: [PATCH] =Some more tweaks. Mostly on the MenuBlock and adding the Meta.php to WooCommerce Products

---
 inc/managers/NewsRelationships.php |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/inc/managers/NewsRelationships.php b/inc/managers/NewsRelationships.php
index 5156256..5d12beb 100644
--- a/inc/managers/NewsRelationships.php
+++ b/inc/managers/NewsRelationships.php
@@ -1,7 +1,7 @@
 <?php
 namespace JVBase\managers;
 
-use JVBase\JVB;
+use JVBase\managers\queue\Queue;
 use WP_Post;
 use WP_Term;
 use WP_Query;
@@ -15,8 +15,7 @@
  */
 class NewsRelationships
 {
-    private string $table_name;
-    private Cache $cache;
+	protected Cache $cache;
 
     public function __construct()
     {
@@ -367,7 +366,7 @@
      * Get all artists with news post counts
      * @return array
      */
-    public function getAllArtistsWithNews():int
+    public function getAllArtistsWithNews():array
     {
         global $wpdb;
 
@@ -626,7 +625,7 @@
         $wpdb->query("TRUNCATE TABLE {$this->table_name}");
 
 
-        JVB()->queue()->queueOperation(
+        Queue::getInstance()->queueOperation(
             'rebuild_news',
             0,
             [
@@ -645,7 +644,7 @@
     }
 
     /**
-     * @param WP_Error $result
+     * @param WP_Error|array $result
      * @param object $operation
      * @param array $data
      *

--
Gitblit v1.10.0