Skip to content

Restoring a revision doesn't display a success message #19226

@johnbillion

Description

@johnbillion

Describe the bug

The Post restored to revision from... message isn't shown when restoring an older revision of a post. The message correctly appears when using the classic editor.

To reproduce
Steps to reproduce the behavior:

  1. Publish a post and then make a change to it and save it.
  2. Click the Revisions item in the editor sidebar.
  3. Navigate to the previous revision and click Restore This Revision.
  4. Observe that the revision was restored but there was no success message.

Expected behavior

The Post restored to revision from [date] message should appear, as it does in the classic editor. This is element with index 5 in the post_updated_messages array.

Metadata

Metadata

Assignees

Labels

General InterfaceParts of the UI which don't fall neatly under other labels.Needs DevReady for, and needs developer efforts[Feature] HistoryHistory, undo, redo, revisions, autosave.[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions