Skip to content

Commit

Permalink
Post Content: No need to pass default get_the_content args (#37701)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jan 4, 2022
1 parent 9873638 commit ca85ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-content/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function render_block_core_post_content( $attributes, $content, $block ) {
// When inside the main loop, we want to use queried object
// so that `the_preview` for the current post can apply.
// We force this behavior by omitting the third argument (post ID) from the `get_the_content`.
$content = get_the_content( null, false );
$content = get_the_content();
/** This filter is documented in wp-includes/post-template.php */
$content = apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) );
unset( $seen_ids[ $post_id ] );
Expand Down

0 comments on commit ca85ced

Please sign in to comment.