From e3ec0106f43bc22274c7ff017f3d28fd6326140e Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 19 Feb 2025 15:27:54 +0100 Subject: [PATCH] Change comment format --- src/wp-includes/blocks.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index a932b29c94039..3268983534566 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -1200,10 +1200,12 @@ function apply_block_hooks_to_content_from_post_object( $content, WP_Post $post ); } - // We need to wrap the content in a temporary wrapper block with that metadata - // so the Block Hooks algorithm can insert blocks that are hooked as first or last child - // of the wrapper block. - // To that end, we need to determine the wrapper block type based on the post type. + /* + * We need to wrap the content in a temporary wrapper block with that metadata + * so the Block Hooks algorithm can insert blocks that are hooked as first or last child + * of the wrapper block. + * To that end, we need to determine the wrapper block type based on the post type. + */ if ( 'wp_navigation' === $post->post_type ) { $wrapper_block_type = 'core/navigation'; } elseif ( 'wp_block' === $post->post_type ) {