Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-includes/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated
}

$hooked_blocks = get_hooked_blocks();
if ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) {
if ( empty( $changes->post_content ) || ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) ) {
return $changes;
}

Expand Down