Skip to content

Commit ab0426f

Browse files
committed
Edit Post: Remove SlotFillProvider as rendered by block editor
1 parent 0d60f1b commit ab0426f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

packages/block-editor/src/components/provider/index.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* WordPress dependencies
33
*/
44
import { Component } from '@wordpress/element';
5-
import { DropZoneProvider, SlotFillProvider } from '@wordpress/components';
5+
import { DropZoneProvider } from '@wordpress/components';
66
import { withDispatch } from '@wordpress/data';
77
import { compose } from '@wordpress/compose';
88

@@ -121,11 +121,9 @@ class BlockEditorProvider extends Component {
121121
const { children } = this.props;
122122

123123
return (
124-
<SlotFillProvider>
125-
<DropZoneProvider>
126-
{ children }
127-
</DropZoneProvider>
128-
</SlotFillProvider>
124+
<DropZoneProvider>
125+
{ children }
126+
</DropZoneProvider>
129127
);
130128
}
131129
}

packages/edit-post/src/editor.js

+15-13
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { size, map, without } from 'lodash';
1010
import { withSelect } from '@wordpress/data';
1111
import { EditorProvider, ErrorBoundary, PostLockedModal } from '@wordpress/editor';
1212
import { StrictMode, Component } from '@wordpress/element';
13-
import { KeyboardShortcuts } from '@wordpress/components';
13+
import { KeyboardShortcuts, SlotFillProvider } from '@wordpress/components';
1414

1515
/**
1616
* Internal dependencies
@@ -87,18 +87,20 @@ class Editor extends Component {
8787

8888
return (
8989
<StrictMode>
90-
<EditorProvider
91-
settings={ editorSettings }
92-
post={ post }
93-
initialEdits={ initialEdits }
94-
{ ...props }
95-
>
96-
<ErrorBoundary onError={ onError }>
97-
<Layout />
98-
<KeyboardShortcuts shortcuts={ preventEventDiscovery } />
99-
</ErrorBoundary>
100-
<PostLockedModal />
101-
</EditorProvider>
90+
<SlotFillProvider>
91+
<EditorProvider
92+
settings={ editorSettings }
93+
post={ post }
94+
initialEdits={ initialEdits }
95+
{ ...props }
96+
>
97+
<ErrorBoundary onError={ onError }>
98+
<Layout />
99+
<KeyboardShortcuts shortcuts={ preventEventDiscovery } />
100+
</ErrorBoundary>
101+
<PostLockedModal />
102+
</EditorProvider>
103+
</SlotFillProvider>
102104
</StrictMode>
103105
);
104106
}

0 commit comments

Comments
 (0)