From 1bde6147f79f1361b3fbee13c7bde750b4f9d6fc Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 16 Jul 2024 07:13:55 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=BA=20Add=20validation=20support=20to?= =?UTF-8?q?=20uncached=20blocks=20(Fixes=20#254)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Block.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Block.php b/src/Block.php index 415ef787..d384a42e 100644 --- a/src/Block.php +++ b/src/Block.php @@ -491,6 +491,8 @@ public function settings(): Collection 'enqueue_assets' => fn ($block) => method_exists($this, 'assets') ? $this->assets($block) : null, 'textdomain' => $this->getTextDomain(), 'acf_block_version' => 2, + 'api_version' => 2, + 'validate' => true, 'use_post_meta' => $this->usePostMeta, 'render_callback' => function ( $block,