Repository navigation
Editor: Remove and deprecate the old inspector components - #87902
ntsekouras wants to merge 2 commits into
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: -451 B (-0.01%) Total Size: 8.85 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Navigates the items list via UP/DOWN arrow keys in
|
1b2a9da to
b848f41
Compare
| See [core code](https://github.com/WordPress/gutenberg/tree/HEAD/packages/editor/src/components/sidebar/post-summary.jsx#L39). | ||
|
|
||
| ```js | ||
| export default function PostSummary( { onActionPerformed } ) { |
There was a problem hiding this comment.
I don't see any value in preserving an example like that with internal implementation, so I didn't port this.
b848f41 to
0d43712
Compare
What?
Part of: #76076
Follow up of: #85081
#85081 was a soft stabilization and kept the old inspector components, so we could revert easily during beta. This PR cleans them up.
The internal components of the old post summary are removed together with their styles (the summary itself, the status panel, blog title, posts per page, site discussion, last edited, format and sticky panels and the private excerpt and revisions variants).
The public ones that nothing renders anymore are deprecated, since they are part of
wp.editor:PageAttributesOrder,PageAttributesPanel,PageAttributesParent,PageTemplate,PostAuthor,PostAuthorPanel,PostComments,PostDiscussionPanel,PostExcerpt,PostExcerptPanel,PostFeaturedImage,PostFeaturedImagePanel,PostFormat,PostLastRevision,PostLastRevisionPanel,PostPendingStatus,PostPingbacks,PostSchedulePanel,PostSticky,PostSyncStatus,PostTemplatePanel,PostURL,PostURLLabel,PostURLPanelandusePostURLLabel. They still work and log a deprecation warning with a link to the dev note. The tests ofPageAttributesOrderandPageAttributesPanelare removed.Also removes the internal summary example from the SlotFills docs, which still showed the old summary.
Notes
PageAttributesOrder,PostLastRevisionPanel,PostPendingStatus,PostURLLabelandusePostURLLabelare also deprecated here, even though they were not rendered even before the DataForm inspector.*Checkcomponents (PostAuthorCheck,PostScheduleCheck, etc..), since they are generic checks that plugins could still use. We could consider that in a follow up though.Testing Instructions
Use of AI Tools
Generated with Opus 5.5 and adjusted/reviewed manually.