From cb0a3d9cd8374f0987c4e2f893e623fd705437b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20W=C3=BCnsch?= Date: Tue, 19 Nov 2024 19:58:52 +0100 Subject: [PATCH] Pattern: Remove Backward compatibility code for WordPress < 6.4. --- packages/block-library/src/pattern/index.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/block-library/src/pattern/index.php b/packages/block-library/src/pattern/index.php index 5595818a2271b7..870313eb5e86d8 100644 --- a/packages/block-library/src/pattern/index.php +++ b/packages/block-library/src/pattern/index.php @@ -58,13 +58,6 @@ function render_block_core_pattern( $attributes ) { $pattern = $registry->get_registered( $slug ); $content = $pattern['content']; - // 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' ) ) { - $blocks = parse_blocks( $content ); - $content = gutenberg_serialize_blocks( $blocks ); - } - $seen_refs[ $attributes['slug'] ] = true; $content = do_blocks( $content );