WordPress provides the flexibility to store revisions of posts. That means, WordPress stores the posts into post revisions whenever you modify the post. This really helps to retrieve the post information from post revisions when you miss some information in the current post. WordPress stores all the post revisions into the database like it stores the posts.
WordPress revisions allow you to view, compare, and restore other versions of the post content.
Let’s look at how to view, compare and restore versions of the post.
Step 1. Log in to your WordPress site as an administrator.
Step 2. Go to the posts and edit any existing posts. WordPress will display the “Edit Post” page from where you are allowed to edit the post.
Step 3. Observe that, on the right side of the “Edit Post” page, under Publish section, you will find the “Revisions:” field. This field displays the number of post revisions WordPress stores for this post.
If the number is “4”, which means “4” revisions are available in the database for this post.
Step 4. Click on the Browse link which is next to the “Revisions:” field to browse the post revisions. WordPress will display the “Compare Revisions” page.
Step 4.1. To view different version of the post, select the particular version from revision bar (which is on top of the page) or you can view the revisions by clicking on Previous or Next buttons. When you click on Previous button, WordPress will navigate to previous revision from currently displaying version. Next button will display the next revision of the post from currently displaying revision.
Step 4.2. Select the check box “Compare any two versions” to compare between two selected versions of the post. WordPress will display the difference between two revisions of the post.
Step 4.3. Select the revision of the post you want to restore and click on “Restore This Revision” button. WordPress will restore the selected revision and once you navigate to “Edit Post” page, you will see the restored version of the post. When you publish the post or update the post this restored version will be published or updated.
Step 5. Click on “Return to post editor” to go back to the “Edit Post” page.
Once you edit the post and save it; WordPress will create a new revision for the changed post.