From 7b1c44ca0525e8477faf5d46b8da12766a43b396 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 28 Jul 2023 16:55:37 +0100 Subject: [PATCH] Remove block tools back compat component schedule for deprecated in 6.3 (#53115) * Removes usage of BlockToolsBackCompat * Remove unwanted BlockTools from Nav sidebar --- packages/block-editor/src/components/block-list/index.js | 9 +++------ .../navigation-menu-content.js | 5 +---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/block-editor/src/components/block-list/index.js b/packages/block-editor/src/components/block-list/index.js index 6df09478931a2..04b767d9568b7 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 ( - - - - - + + + ); } 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 35a06b53786ec..6cc3138c9c2f7 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 } ) { /> ) }
- - - +
);