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
Add check for metadata.name
  • Loading branch information
kevin940726 committed Mar 20, 2024
commit e9858fe63e644474eead2e0e1cc276f627781d17
3 changes: 2 additions & 1 deletion lib/compat/wordpress-6.6/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ function gutenberg_process_pattern_overrides_bindings( $block_content, $parsed_b
// If the block isn't one of the supported block types or isn't inside a pattern, return.
if (
! isset( $supported_block_attrs[ $block_instance->name ] ) ||
! isset( $block_instance->context['pattern/overrides'] )
! isset( $block_instance->context['pattern/overrides'] ) ||
empty( $parsed_block['attrs']['metadata']['name'] )
) {
return $block_content;
}
Expand Down