From ca5331b21c9ab3bf132ac8f82c6d9f04a3b97805 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Mon, 4 Sep 2023 18:55:30 +0200 Subject: [PATCH] Streamline names in JS file --- packages/block-editor/src/hooks/block-hooks.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/block-editor/src/hooks/block-hooks.js b/packages/block-editor/src/hooks/block-hooks.js index b79edfc020b63..678f8ee06d971 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 ); }