From ea11a05abe2f56a47006c572d6e9a09ca249166c Mon Sep 17 00:00:00 2001 From: Justin Tadlock Date: Sat, 1 Jun 2024 12:55:17 -0500 Subject: [PATCH] Remove temporary fix for missing pattern render filter hook. This was fixed in Gutenberg: https://github.com/WordPress/gutenberg/pull/61757 Fixes: https://github.com/x3p0-dev/x3p0-ideas/issues/12 --- src/Blocks.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Blocks.php b/src/Blocks.php index f8888905..a12cb539 100644 --- a/src/Blocks.php +++ b/src/Blocks.php @@ -86,12 +86,6 @@ public function __construct( public function boot(): void { $this->hookMethods(); - - // Temporary fix for Gutenberg 18.1+ bypassing `render_block` - // when calling the Pattern block. - // @link https://github.com/x3p0-dev/x3p0-ideas/issues/12 - remove_filter( 'get_block_templates', 'gutenberg_replace_pattern_blocks_get_block_templates' ); - remove_filter( 'get_block_template', 'gutenberg_replace_pattern_blocks_get_block_template' ); } /**