Skip to content

Commit

Permalink
Remove temporary fix for missing pattern render filter hook.
Browse files Browse the repository at this point in the history
This was fixed in Gutenberg: WordPress/gutenberg#61757

Fixes: #12
  • Loading branch information
justintadlock committed Jun 1, 2024
1 parent 854782c commit ea11a05
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down

0 comments on commit ea11a05

Please sign in to comment.