diff --git a/packages/block-editor/src/hooks/block-hooks.js b/packages/block-editor/src/hooks/block-hooks.js index b79edfc020b638..678f8ee06d9713 100644 --- a/packages/block-editor/src/hooks/block-hooks.js +++ b/packages/block-editor/src/hooks/block-hooks.js @@ -21,7 +21,7 @@ import { store as blockEditorStore } from '../store'; const EMPTY_OBJECT = {}; -function BlocksHooksControl( props ) { +function BlockHooksControl( props ) { const blockTypes = useSelect( ( select ) => select( blocksStore ).getBlockTypes(), [] @@ -235,25 +235,25 @@ function BlocksHooksControl( props ) { ); } -export const withHookedBlocks = createHigherOrderComponent( ( BlockEdit ) => { +export const withBlockHooks = createHigherOrderComponent( ( BlockEdit ) => { return ( props ) => { const blockEdit = ; return ( <> { blockEdit } - ); }; -}, 'withHookedBlocks' ); +}, 'withBlockHooks' ); if ( window?.__experimentalBlockHooks ) { addFilter( 'editor.BlockEdit', - 'core/hooked-blocks/with-inspector-control', - withHookedBlocks + 'core/block-hooks/with-inspector-control', + withBlockHooks ); }