Description
On the Post Revisions view, the current version of a post still shows an active "Restore" button — even though there's nothing to restore to (the post is already at that state).
Clicking it fires a "Version restored…" success notice as if a restore had happened, despite no state change occurring.
The button should either be disabled/hidden on the current revision, or clicking it should be a no-op that doesn't display a misleading success message.
Steps to reproduce
- Open the Post Revisions view for a post that has at least one prior revision.
- Look at the current revision (the most recent, i.e. the one already applied to the post).
- Observe the "Restore" button is enabled.
- Click it.
Expected
Either:
- "Restore" is disabled / hidden on the current revision (nothing to restore), or
- Clicking it is a no-op that doesn't produce a success message.
Actual
- "Restore" is enabled on the current revision.
- Clicking it fires a "Version restored…" success message even though no state has changed.
Reporter's own words
For post revisions, I found it strange that the current version still had a "Restore" button because there is nothing to restore, it's at the current version. When you click Restore, it acts as though it has restored a version, and the popup message says "Version restored…"
I expected the Restore button to be disabled or something since there is nothing to restore.
Environment
Description
On the Post Revisions view, the current version of a post still shows an active "Restore" button — even though there's nothing to restore to (the post is already at that state).
Clicking it fires a "Version restored…" success notice as if a restore had happened, despite no state change occurring.
The button should either be disabled/hidden on the current revision, or clicking it should be a no-op that doesn't display a misleading success message.
Steps to reproduce
Expected
Either:
Actual
Reporter's own words
Environment