Jake Vanderwerf
2026-01-25 b38f03c0e7218762d90fa5092696b127f24f36db
inc/blocks/GlossaryBlock.php
@@ -1,9 +1,7 @@
<?php
namespace JVBase\blocks;
use JVBase\managers\CacheManager;
use JVBase\forms\TaxonomySelector;
use JVBase\meta\MetaManager;
use JVBase\managers\Cache;
use WP_Block;
use WP_Query;
@@ -13,7 +11,7 @@
class GlossaryBlock
{
   protected CacheManager $cache;
   protected Cache $cache;
   protected string $config;
   protected string $type;
   protected string $path = JVB_DIR . '/build/glossary';
@@ -24,7 +22,7 @@
   public function __construct()
   {
      $this->cache = CacheManager::for('glossary_terms', WEEK_IN_SECONDS)->connectTo('post', 'terms');
      $this->cache = Cache::for('glossary_terms', WEEK_IN_SECONDS)->connect('post', true);
      add_action('init', [ $this, 'registerBlock' ]);
   }
@@ -89,7 +87,6 @@
         'post_status'     => 'publish',
         'orderby'         => 'title',
         'order'           => 'asc',
//       'fields'       => 'ids'
      ]);
      $glossary = [];
      if ($posts->have_posts()) {