Skip to content

Commit 4441db6

Browse files
priethortellthemachines
authored andcommitted
Revert "Post editor: Require confirmation before removing Footnotes (#52277)" (#52486)
This reverts commit e6426ea.
1 parent dd53d7b commit 4441db6

File tree

1 file changed

+1
-14
lines changed
  • packages/edit-post/src/components/layout

1 file changed

+1
-14
lines changed

packages/edit-post/src/components/layout/index.js

+1-14
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ import {
1616
store as editorStore,
1717
} from '@wordpress/editor';
1818
import { useSelect, useDispatch } from '@wordpress/data';
19-
import {
20-
BlockBreadcrumb,
21-
privateApis as blockEditorPrivateApis,
22-
} from '@wordpress/block-editor';
19+
import { BlockBreadcrumb } from '@wordpress/block-editor';
2320
import { Button, ScrollLock, Popover } from '@wordpress/components';
2421
import { useViewportMatch } from '@wordpress/compose';
2522
import { PluginArea } from '@wordpress/plugins';
@@ -52,9 +49,6 @@ import WelcomeGuide from '../welcome-guide';
5249
import ActionsPanel from './actions-panel';
5350
import StartPageOptions from '../start-page-options';
5451
import { store as editPostStore } from '../../store';
55-
import { unlock } from '../../lock-unlock';
56-
57-
const { BlockRemovalWarningModal } = unlock( blockEditorPrivateApis );
5852

5953
const interfaceLabels = {
6054
/* translators: accessibility text for the editor top bar landmark region. */
@@ -69,12 +63,6 @@ const interfaceLabels = {
6963
footer: __( 'Editor footer' ),
7064
};
7165

72-
const blockRemovalRules = {
73-
'core/footnotes': __(
74-
'The Footnotes block displays all footnotes found in the content. Note that any footnotes in the content will persist after removing this block.'
75-
),
76-
};
77-
7866
function Layout( { styles } ) {
7967
const isMobileViewport = useViewportMatch( 'medium', '<' );
8068
const isHugeViewport = useViewportMatch( 'huge', '>=' );
@@ -214,7 +202,6 @@ function Layout( { styles } ) {
214202
<LocalAutosaveMonitor />
215203
<EditPostKeyboardShortcuts />
216204
<EditorKeyboardShortcutsRegister />
217-
<BlockRemovalWarningModal rules={ blockRemovalRules } />
218205
<SettingsSidebar />
219206
<InterfaceSkeleton
220207
isDistractionFree={ isDistractionFree && isLargeViewport }

0 commit comments

Comments
 (0)