Skip to content

Commit 27b625f

Browse files
committed
Ensure that post thumbnail is cached in post template block.
1 parent 60bddd3 commit 27b625f

File tree

1 file changed

+1
-0
lines changed
  • packages/block-library/src/post-template

1 file changed

+1
-0
lines changed

packages/block-library/src/post-template/index.php

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function render_block_core_post_template( $attributes, $content, $block ) {
3939
if ( ! $query->have_posts() ) {
4040
return '';
4141
}
42+
update_post_thumbnail_cache( $query );
4243

4344
$classnames = '';
4445
if ( isset( $block->context['displayLayout'] ) && isset( $block->context['query'] ) ) {

0 commit comments

Comments
 (0)