Skip to content

Commit 02d5808

Browse files
committed
fix double wpautop when rendering shared block
1 parent 8b0137b commit 02d5808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Rest/RenderBlockRestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function get_item( $request ) {
100100
$this->setup_block_support_styles_capture();
101101

102102
/** This filter is documented in wp-includes/post-template.php */
103-
$block_render = apply_filters( 'the_content', render_block( $shared_block_data ) );
103+
$block_render = apply_filters( 'the_content', serialize_block( $shared_block_data ) );
104104

105105
// Get list of block types used while rendering the shared block.
106106
$use_block_types = $this->capture_use_block_types();

0 commit comments

Comments
 (0)