From a58a2e7ca4700d3e23341fde767060a4c2c704a3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 30 Aug 2026 21:04:37 +0000
Subject: [PATCH] =Minor tweaks to MenuBlock.php
---
inc/blocks/GlossaryBlock.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/inc/blocks/GlossaryBlock.php b/inc/blocks/GlossaryBlock.php
index 696c21d..bac2a49 100644
--- a/inc/blocks/GlossaryBlock.php
+++ b/inc/blocks/GlossaryBlock.php
@@ -22,7 +22,7 @@
public function __construct()
{
- $this->cache = Cache::for('glossary_terms', WEEK_IN_SECONDS)->connect('post', true);
+ $this->cache = Cache::for('glossary_terms', 'post', WEEK_IN_SECONDS);
add_action('init', [ $this, 'registerBlock' ]);
}
@@ -91,7 +91,7 @@
$glossary = [];
if ($posts->have_posts()) {
foreach($posts->posts as $post) {
-// $meta = new MetaManager($post, 'post');
+// $meta = Meta::forPost($post);
// $fields = $meta->getAll();
// $glossary[$fields['post_slug']] = $fields;
$glossary[$post->post_name] = [
--
Gitblit v1.10.0