Skip to content

Commit

Permalink
Both cached and uncached blocks should use the same ACF block version
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafredrickson authored Mar 12, 2024
1 parent 64a0472 commit 122cbce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ public function settings(): Collection
'styles' => $this->getStyles(),
'supports' => $this->supports,
'enqueue_assets' => fn ($block) => method_exists($this, 'assets') ? $this->assets($block) : null,
'acf_block_version' => 2,
'render_callback' => function (
$block,
$content = '',
Expand Down

0 comments on commit 122cbce

Please sign in to comment.