Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions public_html/wp-content/plugins/pattern-creator/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' );
Loading