Jake Vanderwerf
2026-08-28 a9654f00c8fbc9934289d761843ddd071025013f
inc/blocks/FeedBlock.php
@@ -6,8 +6,6 @@
use JVBase\registrar\Registrar;
use JVBase\base\Site;
use JVBase\forms\TaxonomySelector;
use JVBase\ui\CRUDSkeleton;
use WP_Block;
use WP_Query;
if (!defined('ABSPATH')) {
@@ -794,24 +792,19 @@
      if (!$isTemplate && empty($value)) {
         return '';
      }
      switch ($fieldName) {
         case 'post_title':
            return sprintf(
      return match ($fieldName) {
         'post_title' => sprintf(
               '<h3%s>%s</h3>',
               $data,
               $meta && !empty($value) ? $value : '',
            );
         case 'post_date':
         case 'post_modified':
            return sprintf(
         ),
         'post_date', 'post_modified' => sprintf(
               '<time%s%s>%s</time>',
               $data,
               $meta && !empty($value) ? date('c', strtotime($value)) : '',
               $meta && !empty($value) ? date('F j, Y', strtotime($value)) : '',
            );
      }
      return match ($fieldType) {
         ),
         default => match ($fieldType) {
         'date' => sprintf(
            '<time%s%s>%s</time>',
            $data,
@@ -884,7 +877,9 @@
            $data,
            $value
         ),
         },
      };
   }
   protected function iconFor(array $fieldConfig):string
   {