Repository navigation
Media editor: update comments and remove references to "cluster" - #87873
Conversation
Name the sub-components and buttons the comments mean, and drop the reference to elements the frame context replaced.
🤖 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: 0 B Total Size: 8.73 MB
⚡ 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. should undo without broken temporary state in
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the media editor comment clarifications.
No open issues 🎉
What changed in this PR
Clarifies media editor comments following #87871. All changes are comment-only; runtime behavior is unchanged.
Changes:
- Replaces “cluster” terminology with specific component, control, or group names.
- Simplifies layout and context explanations and removes historical wording.
| File | Description |
|---|---|
routes/media-editor/style.scss |
Clarifies toolbar alignment and header group comments. |
packages/media-editor/src/components/media-editor/index.tsx |
Simplifies comments about history controls, context, and component identity. |
packages/media-editor/src/components/media-editor-modal/style.scss |
Names HistoryActions explicitly in the scoped styling comment. |
Review effort: Balanced
What?
Follow-up to #87871.
Rewords the media editor comments that call the frame's controls "clusters". They now name what they mean:
MediaEditor.HistoryActions, the undo and redo buttons, or theMediaEditorsub-components a frame places.It also drops "like the elements it replaces" from the frame context comment, since it describes the change that added the code rather than the code.
Why
"Clusters" reminds me of a breakfast cereal. And not a healthy one.
Comments only, no code changes.
Testing Instructions
Read the diff.