From 450780e428aee81b792379c653d0ece45d377e76 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 28 Jul 2023 15:25:24 +0100 Subject: [PATCH 1/2] Removes usage of BlockToolsBackCompat --- packages/block-editor/src/components/block-list/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/block-editor/src/components/block-list/index.js b/packages/block-editor/src/components/block-list/index.js index 6df09478931a2f..04b767d9568b78 100644 --- a/packages/block-editor/src/components/block-list/index.js +++ b/packages/block-editor/src/components/block-list/index.js @@ -33,7 +33,6 @@ import { useInBetweenInserter } from './use-in-between-inserter'; import { store as blockEditorStore } from '../../store'; import { usePreParsePatterns } from '../../utils/pre-parse-patterns'; import { LayoutProvider, defaultLayout } from './layout'; -import BlockToolsBackCompat from '../block-tools/back-compat'; import { useBlockSelectionClearer } from '../block-selection-clearer'; import { useInnerBlocksProps } from '../inner-blocks'; import { @@ -127,11 +126,9 @@ function Root( { className, ...settings } ) { export default function BlockList( settings ) { usePreParsePatterns(); return ( - - - - - + + + ); } From 5b338805af8aff535c3226f820c91f295a274156 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 28 Jul 2023 15:26:03 +0100 Subject: [PATCH 2/2] Remove unwanted BlockTools from Nav sidebar --- .../navigation-menu-content.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js b/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js index 35a06b53786ec7..6cc3138c9c2f7f 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js @@ -5,7 +5,6 @@ import { privateApis as blockEditorPrivateApis, store as blockEditorStore, BlockList, - BlockTools, } from '@wordpress/block-editor'; import { useDispatch, useSelect } from '@wordpress/data'; import { createBlock } from '@wordpress/blocks'; @@ -106,9 +105,7 @@ export default function NavigationMenuContent( { rootClientId } ) { /> ) }
- - - +
);