Skip to content

Commit

Permalink
Register core sources in posts dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Nov 6, 2024
1 parent 4d837a4 commit 3a47f64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/edit-site/src/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
__experimentalRegisterExperimentalCoreBlocks,
} from '@wordpress/block-library';
import { dispatch } from '@wordpress/data';
import { privateApis as editorPrivateApis } from '@wordpress/editor';
import { createRoot, StrictMode } from '@wordpress/element';
import { store as preferencesStore } from '@wordpress/preferences';
import {
Expand All @@ -20,12 +21,15 @@ import {
*/
import './hooks';
import { store as editSiteStore } from './store';
import { unlock } from './lock-unlock';

/**
* Internal dependencies
*/
import PostsApp from './components/posts-app';

const { registerCoreBlockBindingsSources } = unlock( editorPrivateApis );

/**
* Initializes the "Posts Dashboard"
* @param {string} id ID of the root element to render the screen in.
Expand All @@ -43,6 +47,7 @@ export function initializePostsDashboard( id, settings ) {
( { name } ) => name !== 'core/freeform'
);
registerCoreBlocks( coreBlocks );
registerCoreBlockBindingsSources();
dispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );
registerLegacyWidgetBlock( { inserter: false } );
registerWidgetGroupBlock( { inserter: false } );
Expand Down

0 comments on commit 3a47f64

Please sign in to comment.