Skip to content

Commit b08c774

Browse files
authored
Pattern: Remove Backward compatibility code for WordPress < 6.4. (#67131)
1 parent 6cd6b00 commit b08c774

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/block-library/src/pattern/index.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ function render_block_core_pattern( $attributes ) {
5858
$pattern = $registry->get_registered( $slug );
5959
$content = $pattern['content'];
6060

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-
6861
$seen_refs[ $attributes['slug'] ] = true;
6962

7063
$content = do_blocks( $content );

0 commit comments

Comments
 (0)