Skip to content

Commit

Permalink
Change comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 19, 2025
1 parent 0ba659c commit e3ec010
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit e3ec010

Please sign in to comment.