Skip to content

Commit 6c22d9f

Browse files
authored
🐛 Respect post type restrictions for cached blocks (#296)
1 parent 9b3ba57 commit 6c22d9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Block.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,12 @@ public function toJson(): string
593593
'acf_block_version',
594594
'enqueue_assets',
595595
'mode',
596+
'post_types',
596597
'render_callback',
597598
'use_post_meta',
598599
])->put('acf', [
599600
'mode' => $this->mode,
601+
'postTypes' => $this->post_types,
600602
'renderTemplate' => $this::class,
601603
'usePostMeta' => $this->usePostMeta,
602604
])->put('name', $this->namespace);

0 commit comments

Comments
 (0)