Skip to content

Commit

Permalink
🐛 Respect post type restrictions for cached blocks (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderdw authored Dec 21, 2024
1 parent 9b3ba57 commit 6c22d9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,12 @@ public function toJson(): string
'acf_block_version',
'enqueue_assets',
'mode',
'post_types',
'render_callback',
'use_post_meta',
])->put('acf', [
'mode' => $this->mode,
'postTypes' => $this->post_types,
'renderTemplate' => $this::class,
'usePostMeta' => $this->usePostMeta,
])->put('name', $this->namespace);
Expand Down

0 comments on commit 6c22d9f

Please sign in to comment.