From f4d5f0c814b7b30b9d94bbb167c8989aad1886db Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Tue, 2 May 2023 18:57:01 +0600 Subject: [PATCH] Auto-insert Avatar block under comments --- lib/experimental/blocks.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/experimental/blocks.php b/lib/experimental/blocks.php index 30ebd28e87bca7..018ae7d2cc1497 100644 --- a/lib/experimental/blocks.php +++ b/lib/experimental/blocks.php @@ -144,11 +144,7 @@ function gutenberg_auto_insert_blocks( $block_content, $block ) { return $block_content; } - $inserted_block_markup = << - - -END; + $inserted_block_markup = ''; $inserted_blocks = parse_blocks( $inserted_block_markup ); $inserted_content = render_block( $inserted_blocks[0] );