Skip to content

Commit

Permalink
Remove now unnecessary _inject_theme_attribute_in_template_part_block…
Browse files Browse the repository at this point in the history
…() call from pattern block.
  • Loading branch information
felixarntz committed Oct 11, 2023
1 parent b769297 commit 47608ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/block-library/src/pattern/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function render_block_core_pattern( $attributes ) {
// Backward compatibility for handling Block Hooks and injecting the theme attribute in the Gutenberg plugin.
// This can be removed when the minimum supported WordPress is >= 6.4.
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN && ! function_exists( 'traverse_and_serialize_blocks' ) ) {
$content = _inject_theme_attribute_in_block_template_content( $content );
$blocks = parse_blocks( $content );
$content = gutenberg_serialize_blocks( $blocks );
}
Expand Down

0 comments on commit 47608ff

Please sign in to comment.