In-editor revisions: Show title and excerpt changes in the revisions sidebar - #81281
In-editor revisions: Show title and excerpt changes in the revisions sidebar#81281priethor wants to merge 3 commits into
Conversation
|
Size Change: +160 B (0%) Total Size: 7.82 MB 📦 View Changed
|
|
Flaky tests detected in acc8d07. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/31169158199 should load styles added through enqueue_block_assets in |
7b35190 to
acc8d07
Compare
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If 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. |
What
Follow-up to this comment on #80314.
The existing Meta panel is renamed to Fields to also show Title and Excerpt alongside the meta rows, with word-level diffs when either value changes. Title and Excerpt only appear when their values differ.
Why
Restoring an older revision can replace the post title and excerpt. Until now, neither change appeared in the comparison before clicking Restore.
How
The shared diff panel can now receive its open state from a caller. Selecting a revision with a Title or Excerpt change opens Fields. Selecting one without those changes leaves the panel alone, so an open meta comparison such as footnotes does not suddenly collapse. The block attributes panel continues to manage its own state.
Testing Instructions
First title, the excerptFirst excerpt, and a footnote containingalpha. Save it.Second titleand the excerpt toSecond excerpt. Add a footnote containingbeta, then save again.gammawithout changing the title or excerpt, then save once more.gamma. Close Fields.I used Claude to help implement these changes. I guided the work, then tested and reviewed the result.