Update plugin-document-setting-panel.md bad import reference #61651
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Fix reference error found in documentation on PluginDocumentSettingPanel
Why?
When you follow the code examples you get non-compiling code as
PluginDocumentSettingPanel
isundefined
when using the editor library instead of edit-postHow?
Updates the documentation to use the correct library where
PluginDocumentSettingPanel
can be foundChanges imports from
@wordpress/editor
to@wordpress/edit-post
Testing Instructions
Tested on WP 6.5.3
Built with node packages:
@wordpress/scripts 27.8.0
@wordpress/components 27.5.0
Create a simple WP Block and use the demo code. Compile using
npm run build
. Include the block or built JavaScript, there should be no undefinedPluginDocumentSettingPanel
now.Testing Instructions for Keyboard
N/A
Screenshots or screencast