Skip to content

Commit

Permalink
Add Pattern block to problematic notes, and a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Dec 20, 2023
1 parent 9bf9156 commit 18ad164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,11 @@ function make_before_block_visitor( $hooked_blocks, $context ) {
$markup .= get_hooked_block_markup( $parent_block, $hooked_block_type );
}

// See https://make.wordpress.org/core/2023/10/15/introducing-block-hooks-for-dynamic-blocks/
// > Blocks cannot be hooked into post content or patterns crafted by the user, such as
// > synced patterns or theme templates and template parts that the user has modified.
$problematic_anchor_blocks_for_child_insertion = array(
'core/pattern',
'core/post-content',
'core/template-part',
);
Expand Down

0 comments on commit 18ad164

Please sign in to comment.