We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cd6b00 commit b08c774Copy full SHA for b08c774
packages/block-library/src/pattern/index.php
@@ -58,13 +58,6 @@ function render_block_core_pattern( $attributes ) {
58
$pattern = $registry->get_registered( $slug );
59
$content = $pattern['content'];
60
61
- // Backward compatibility for handling Block Hooks and injecting the theme attribute in the Gutenberg plugin.
62
- // This can be removed when the minimum supported WordPress is >= 6.4.
63
- if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN && ! function_exists( 'traverse_and_serialize_blocks' ) ) {
64
- $blocks = parse_blocks( $content );
65
- $content = gutenberg_serialize_blocks( $blocks );
66
- }
67
-
68
$seen_refs[ $attributes['slug'] ] = true;
69
70
$content = do_blocks( $content );
0 commit comments