Skip to content

Commit

Permalink
Remove classic block in widgets editor (#32800)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored Jun 18, 2021
1 parent e6a3750 commit 01f5e38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/customize-widgets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const { wp } = window;
*/
export function initialize( editorName, blockEditorSettings ) {
const coreBlocks = __experimentalGetCoreBlocks().filter(
( block ) => ! [ 'core/more' ].includes( block.name )
( block ) => ! [ 'core/more', 'core/freeform' ].includes( block.name )
);
registerCoreBlocks( coreBlocks );
registerLegacyWidgetBlock();
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import Layout from './components/layout';
*/
export function initialize( id, settings ) {
const coreBlocks = __experimentalGetCoreBlocks().filter(
( block ) => ! [ 'core/more' ].includes( block.name )
( block ) => ! [ 'core/more', 'core/freeform' ].includes( block.name )
);
registerCoreBlocks( coreBlocks );
registerLegacyWidgetBlock();
Expand Down

0 comments on commit 01f5e38

Please sign in to comment.