Jake Vanderwerf
2026-09-06 3e4e3db64b366028845cfd610c5b17f26bd062ee
inc/blocks/CustomBlocks.php
@@ -111,7 +111,8 @@
   protected function checkMethods(?string $content, array $block, ?WP_Block $parent = null, bool $isPrerender = false):?string
   {
      $blockName = $this->sanitizeBlockName($block);
      if (str_starts_with($blockName, 'woocommerce')) {
      if (str_starts_with($blockName, 'woocommerce') ) {
         return $content;
      }
@@ -181,13 +182,12 @@
            wp_enqueue_style('jvb-form');
            break;
         case 'jvb/timeline':
         case 'jvb/menu':
            wp_enqueue_script('jvb-gallery');
            add_action('wp_footer', 'jvbRenderGallery');
            break;
      }
      return $this->checkMethods($content, $block);
    }
@@ -2305,6 +2305,10 @@
      ), jvbSearch($placeholder, uniqid(), $label, $buttonText, $isInside, $hideInput));
   }
    //core_shortcode
   public function prerender_core_shortcode(array $block, ?string $content, ?WP_Block $parent):?string
   {
      return do_shortcode($block['innerHTML']??'');
   }
   public function prerender_core_social_link(array $block, ?string $content, ?WP_Block $parent):?string
   {
//    jvbDump($block, 'social link');
@@ -2448,7 +2452,6 @@
      }
      $content = '';
      foreach ($block['innerBlocks'] as $b) {
         $rendered = $parent
            ? $this->checkMethods(null, $b, $parent, true)
            : render_block($b);