Compare and Restore WordPress Post Revisions

How WordPress post revisions work, how to compare two versions of a draft or article, what restoring changes, and how to check the result before you publish.

WordPress keeps earlier saved versions of a post so you can see what changed between edits and roll back if needed. This guide explains what the revision system stores, how comparing and restoring differ from other recovery options, and what to check before you rely on a restored version. Behavior can vary with your WordPress version, editor, theme and plugins, so treat the descriptions below as standard core behavior and confirm them on your own site.

What a revision stores and what restoring changes

A revision is a saved snapshot of a post's title, content and excerpt at the moment you saved or updated it. Each new save adds a revision rather than overwriting the previous one, which gives you a history of the article's wording over time.

Restoring copies a chosen revision's title, content and excerpt back into the post. It does not undo settings stored elsewhere. Categories, tags, featured images, publish status and most custom fields are generally not part of a standard revision, so they stay as they currently are. Some content added by page builders or plugins is stored in custom fields rather than in the main content, and that content may not be captured or restored unless the plugin supports revisions for it.

Restoring is not destructive to your history. The version you replace was already saved as a revision, and the restore itself is recorded as a new revision, so you can move back to the later version if the restore was a mistake.

Restoring on a published post changes the live post immediately. There is no separate draft step, so if you only want to borrow wording from an older version, copy that text manually instead of restoring the whole revision.

Revisions compared with autosaves

Autosaves and revisions are separate. WordPress periodically autosaves your work while you edit, but it keeps a single autosave per user for each post and replaces it as you continue editing. An autosave protects against a lost browser tab or session; it is not a version history. When an autosave is newer than the last saved version, WordPress typically shows a notice in the editor offering to view or restore it.

How to open and compare revisions

In the block editor (Gutenberg), open the post settings sidebar and look for the Revisions entry in the post panel once the post has saved revisions. In the classic editor, the Revisions link and count appear in the Publish box. Both lead to the same Revisions screen.

  • Use the slider or the Previous and Next buttons to step through revisions one at a time; each step compares a revision with the one before it.
  • Select the option to compare any two revisions when you want to see the total change between two distant versions, such as the first draft and the current text.
  • Read the side-by-side view: removed text is highlighted on the left and added text on the right, with changes within a line marked at the word level.
  • Check the author and timestamp shown for each revision to confirm whose edit you are looking at.
  • When you have found the version you want, select Restore This Revision.

In the block editor, the comparison shows the stored post content, which includes block markup. Expect to see block comment delimiters around paragraphs, headings and other blocks. A change to a block's settings can therefore appear as a change in the comparison even when the visible wording is identical.

<!-- wp:paragraph -->
<p>Our updated pricing applies to all new orders.</p>
<!-- /wp:paragraph -->

The snippet above is an illustrative example of how a single paragraph block is stored, not output captured from a specific site. When reading a comparison, focus on the text between the tags to judge wording changes, and treat changes to the comment lines as formatting or block-setting changes.

Choosing the right recovery approach

Approach | What it changes | Best for | Main tradeoff
Restore a full revision | Replaces title, content and excerpt with the chosen version | Undoing a bad round of edits across the whole article | Overwrites newer wording you may want to keep; changes a published post at once
Copy text from a revision | Only the passages you paste | Recovering one paragraph while keeping later improvements | Manual work; easy to miss related edits elsewhere in the post
Restore an autosave | Brings back unsaved work from the most recent autosave | Recovering after a crash or closed tab | Only the latest autosave exists; it is not a history
Compare without restoring | Nothing in the post | Reviewing an editor's changes or auditing what changed | No recovery on its own

As a rule of thumb, restore a full revision when nearly everything after a certain point should be discarded. When later edits contain anything worth keeping, compare the versions and copy only the paragraphs you need.

Will the restored or copied text work where you need it?

A full restore keeps block markup intact, so blocks normally return as blocks. Copying text from the comparison screen is different: you may pick up raw markup, or lose formatting such as links, bold text and list structure, depending on what you select and where you paste. After pasting into the block editor, check that the text landed in the intended block type and that links and headings survived.

Restored content that references blocks from a plugin you have since removed may show up as an unsupported or invalid block. Preview the post after restoring and confirm that every block renders as expected.

Headings, list structure and alternative text for images are part of the stored content, so restoring an older revision can also restore older accessibility details, including missing alt text or skipped heading levels that were later fixed. Review those elements rather than assuming the older version meets your current standards.

If you paste two revisions into an online diff tool to get a different view, remember that you are sending the content to an external service. Drafts can contain unpublished announcements, personal data or internal notes. For sensitive material, use the built-in Revisions screen or a diff tool that runs locally on your computer.

When revisions are missing or limited

If no Revisions entry appears, the post may not have been saved more than once, the post type may not support revisions, or the site may have revisions limited or turned off. Site owners can set how many revisions WordPress keeps per post in the wp-config.php file. A value of 0 or false disables revisions, a positive number keeps that many, and leaving the setting undefined keeps all of them. Hosting providers sometimes set this value for you.

define( 'WP_POST_REVISIONS', 10 );

The number above is an example, not a recommendation. A lower limit keeps the database smaller but shortens your history; once older revisions are pruned or removed by a cleanup plugin, they cannot be compared or restored. If you depend on long version histories, check the current limit and any database cleanup schedules before editing important articles.

Gaps to verify on your own site

This guide does not draw on tests of a specific installation, so it cannot confirm how a particular theme, page builder or plugin interacts with revisions. Before relying on a restore for important content, make a small test edit, restore it, and confirm that the visible text, block layout and any plugin-managed content come back as expected.