We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d542b4 commit ac2d856Copy full SHA for ac2d856
1 file changed
public_html/wp-content/plugins/pattern-creator/src/index.js
@@ -4,6 +4,7 @@
4
import { dispatch } from '@wordpress/data';
5
import { registerCoreBlocks } from '@wordpress/block-library';
6
import { render, unmountComponentAtNode } from '@wordpress/element';
7
+import { removeFilter } from '@wordpress/hooks';
8
9
/**
10
* Internal dependencies
@@ -45,3 +46,8 @@ export function initialize( id, settings ) {
45
46
registerCoreBlocks();
47
reinitializeEditor( target, settings );
48
}
49
+
50
+// The hook for the pattern editor somehow triggers a critical error.
51
+// The pattern editor cannot use the pattern directory in the first place,
52
+// so disables the filter itself.
53
+removeFilter( 'editor.BlockEdit', 'core/editor/with-pattern-override-controls' );
0 commit comments