Skip to content

Commit

Permalink
Post Excerpt: Fix previews (#37648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Dec 29, 2021
1 parent 99a7de9 commit a5cb5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-excerpt/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function render_block_core_post_excerpt( $attributes, $content, $block ) {
return '';
}

$excerpt = get_the_excerpt( $block->context['postId'] );
$excerpt = get_the_excerpt();

if ( empty( $excerpt ) ) {
return '';
Expand Down

0 comments on commit a5cb5b6

Please sign in to comment.