Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Change empty() to ! isset()
  • Loading branch information
ockham committed Jul 22, 2024
commit f632c7f7c70dfb1244f6492959ae67ec0b4c3a54
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( $changes->post_content ) || ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) ) {
if ( ! isset( $changes->post_content ) || ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) ) {
return $changes;
}

Expand Down