Skip to content

Revisions: Clarify revision comparison and restore states - #12574

Open
Sukhendu2002 wants to merge 3 commits into
WordPress:trunkfrom
Sukhendu2002:fix/61447-clarify-revisions-ui
Open

Revisions: Clarify revision comparison and restore states#12574
Sukhendu2002 wants to merge 3 commits into
WordPress:trunkfrom
Sukhendu2002:fix/61447-clarify-revisions-ui

Conversation

@Sukhendu2002

@Sukhendu2002 Sukhendu2002 commented Jul 17, 2026

Copy link
Copy Markdown

Trac ticket: https://core.trac.wordpress.org/ticket/61447

This PR clarifies the Revisions screen so users can more easily identify which versions are being compared and which revision can be restored.

It:

  • Displays both the From and To revision details by default.
  • Replaces the disabled restore button for the current revision with “This is the current version.”
  • Hides the empty From row when viewing the earliest revision.
  • Renames Previous and Next to Earlier and Later.
  • Adds unique author-information IDs for accessible slider labels.
  • Correctly maps From and To slider labels in RTL mode.
  • Updates the pinned, tooltip, and responsive layouts.
  • Updates the Revisions help text.

Testing Instructions

  1. Create and publish a post.
  2. Update the post at least twice to create multiple revisions.
  3. Open the Revisions screen for the latest revision.
  4. Confirm both From and To revision details are displayed.
  5. Confirm the latest revision says “This is the current version” instead of showing a disabled restore button.
  6. Select Earlier and Later and confirm navigation works.
  7. Confirm a non-current revision displays an enabled Restore This Revision button.
  8. Navigate to the earliest revision and confirm no empty From row appears.
  9. Enable Compare any two revisions and confirm both slider handles work.
  10. Repeat the comparison using an RTL site language and confirm the handles have the correct From and To accessible labels.
  11. Test at desktop and mobile viewport widths.

Use of AI Tools

AI assistance: Yes
Tool(s): OpenAI Codex
Model(s): GPT-5.6
Used for: Ticket analysis, initial code skeleton, accessibility review.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@github-actions

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@Sukhendu2002
Sukhendu2002 marked this pull request as ready for review July 17, 2026 05:38
@github-actions

Copy link
Copy Markdown

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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props sukhendu2002.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant