From ac2d85669ad8ff9ec1bc04246769e4f0c441d985 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Fri, 9 Jan 2026 01:06:33 +0900 Subject: [PATCH] Fix block crash in pattern creator --- public_html/wp-content/plugins/pattern-creator/src/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public_html/wp-content/plugins/pattern-creator/src/index.js b/public_html/wp-content/plugins/pattern-creator/src/index.js index 7ff6c4f09..9a95c6fd3 100644 --- a/public_html/wp-content/plugins/pattern-creator/src/index.js +++ b/public_html/wp-content/plugins/pattern-creator/src/index.js @@ -4,6 +4,7 @@ import { dispatch } from '@wordpress/data'; import { registerCoreBlocks } from '@wordpress/block-library'; import { render, unmountComponentAtNode } from '@wordpress/element'; +import { removeFilter } from '@wordpress/hooks'; /** * Internal dependencies @@ -45,3 +46,8 @@ export function initialize( id, settings ) { registerCoreBlocks(); reinitializeEditor( target, settings ); } + +// The hook for the pattern editor somehow triggers a critical error. +// The pattern editor cannot use the pattern directory in the first place, +// so disables the filter itself. +removeFilter( 'editor.BlockEdit', 'core/editor/with-pattern-override-controls' );