From 907119e87f6509a68d2b782de668136a7ae0228b Mon Sep 17 00:00:00 2001 From: Anders Rehn Date: Tue, 14 May 2024 12:02:06 +0200 Subject: [PATCH] Update plugin-document-setting-panel.md bad import reference Fix reference error found on https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/ Previously mention to import from @wordpress/editor PluginDocumentSettingPanel. The module is not present in that package but rather @wordpress/edit-post. Tested on WP 6.5.3 Built with node packages: @wordpress/scripts 27.8.0 @wordpress/components 27.5.0 --- .../slotfills/plugin-document-setting-panel.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference-guides/slotfills/plugin-document-setting-panel.md b/docs/reference-guides/slotfills/plugin-document-setting-panel.md index d278a9e96981d1..b6d6ce1c31f0a4 100644 --- a/docs/reference-guides/slotfills/plugin-document-setting-panel.md +++ b/docs/reference-guides/slotfills/plugin-document-setting-panel.md @@ -13,7 +13,7 @@ This SlotFill allows registering a UI to edit Document settings. ```js import { registerPlugin } from '@wordpress/plugins'; -import { PluginDocumentSettingPanel } from '@wordpress/editor'; +import { PluginDocumentSettingPanel } from '@wordpress/edit-post'; const PluginDocumentSettingPanelDemo = () => ( { const { toggleEditorPanelOpened } = useDispatch( editorStore ); @@ -76,7 +76,7 @@ It is also possible to remove panels from the admin using the `removeEditorPanel ```js import { useDispatch } from '@wordpress/data'; -import { store as editorStore } from '@wordpress/editor'; +import { store as editorStore } from '@wordpress/edit-post'; const Example = () => { const { removeEditorPanel } = useDispatch( editorStore );