Skip to content

Commit

Permalink
Fix call to undefined __experimentalRegisterExperimentalCoreBlocks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks authored May 24, 2021
1 parent b6e3e1c commit c13389b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/customize-widgets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export function initialize( editorName, blockEditorSettings ) {
);
registerCoreBlocks( coreBlocks );

__experimentalRegisterExperimentalCoreBlocks();
if ( process.env.GUTENBERG_PHASE === 2 ) {
__experimentalRegisterExperimentalCoreBlocks();
}

registerLegacyWidgetVariations( blockEditorSettings );

Expand Down
4 changes: 3 additions & 1 deletion packages/edit-widgets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export function initialize( id, settings ) {
( block ) => ! [ 'core/more' ].includes( block.name )
);
registerCoreBlocks( coreBlocks );
__experimentalRegisterExperimentalCoreBlocks();
if ( process.env.GUTENBERG_PHASE === 2 ) {
__experimentalRegisterExperimentalCoreBlocks();
}
registerLegacyWidgetVariations( settings );
registerBlock( widgetArea );
settings.__experimentalFetchLinkSuggestions = ( search, searchOptions ) =>
Expand Down

0 comments on commit c13389b

Please sign in to comment.