Skip to content

Editor: Fix Revisions field/button visibility on first edit in the post editor#75861

Draft
im3dabasia wants to merge 2 commits intoWordPress:trunkfrom
im3dabasia:fix/revisions-75858
Draft

Editor: Fix Revisions field/button visibility on first edit in the post editor#75861
im3dabasia wants to merge 2 commits intoWordPress:trunkfrom
im3dabasia:fix/revisions-75858

Conversation

@im3dabasia
Copy link
Copy Markdown
Contributor

What?

Closes #75858

This PR makes the Revisions panel visible in the sidebar immediately after the first save.

Why?

Previously, the Revisions field was hidden until a post had at least two revisions. This was especially confusing when duplicating a page, as the first edit would save a revision but the UI would remain hidden until a second edit was made.

How?

Modified PostLastRevisionCheck to render when revisionsCount is at least 1 instead of 2.

Testing Instructions

  1. Go to Appearance > Editor > Pages.
  2. Duplicate a page.
  3. Make one edit and Save.
  4. Verify the Revisions field is now visible in the Page settings panel.
  5. Confirm it remains hidden on a brand new post with 0 edits.

Screenshots or screencast

Screen.Recording.2026-02-24.at.4.59.58.PM.mov

@github-actions github-actions bot added the [Package] Editor /packages/editor label Feb 24, 2026
@im3dabasia im3dabasia added [Type] Bug An existing feature does not function as intended [Feature] History History, undo, redo, revisions, autosave. labels Feb 24, 2026
@im3dabasia im3dabasia marked this pull request as ready for review February 24, 2026 11:46
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 24, 2026

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: Aljullu <aljullu@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Copy Markdown
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @im3dabasia I think this solution isn't the right one, see #75858 (comment)

@im3dabasia
Copy link
Copy Markdown
Contributor Author

I am moving this PR to draft status while I refine the approach based on the latest discussion. 😅

@im3dabasia im3dabasia marked this pull request as draft February 24, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] History History, undo, redo, revisions, autosave. [Package] Editor /packages/editor [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doing the first edit on a freshly duplicated page doesn't show the Revisions field

2 participants