Jake Vanderwerf
2026-09-15 01e9a8e40351a87f6548a4f55de842d6f6918ad0
inc/blocks/SimpleCalendarBlock.php
@@ -72,7 +72,7 @@
      if (is_post_type_archive($registered)) {
         $this->params = ['all'];
      } elseif (is_tax($taxonomies)) {
         $this->params = [];
         $this->params = ['tax'];
      } else {
         $this->params = [];
      }
@@ -348,15 +348,14 @@
   protected function getCurrentPostTypes():array
   {
      if (is_post_type_archive()) {
      if (is_post_type_archive() && !is_tax()) {
         return [get_queried_object()->name];
      }
      if (is_singular()) {
         return [get_queried_object()->post_type];
      }
      if (is_tax()) {
         $tax = get_queried_object();
         jvbDump($tax, 'taxonomy');
         return [get_post_type()];
      }
      return [];
   }
@@ -367,7 +366,7 @@
      if (is_singular()) {
         return $this->formatSingular();
      }
      $items = new WP_Query($this->buildArgs($past));
      $events = implode('', array_map([$this, 'formatItem'], $items->posts));