Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#50107 closed defect (bug) (duplicate)

You are not showing revision on the edit screen unless there is more than 1

Reported by: mariodabek's profile mariodabek Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Revisions Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Why is this ?
I should be able to see a single revision of a page that's been modified.
I traced the code down to meta-boxes.php line 1428

// We should aim to show the revisions meta box only when there are revisions.
		if ( count( $revisions ) > 1 ) {

This should be > 0 not greater than 1. Greater than one means revisions only show when there is 2 or more.

Change History (3)

#1 @Otto42
4 years ago

With a quick test, this doesn't appear to be valid.

Create a post, publish it. Edit the post, update it. When going to the post editor now, "2 revisions" show in the sidebar just fine, with the initial post and the new revision to it. No need for a third one to exist for the Revisions area to appear.

Tested with trunk.

#2 @ocean90
4 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 5.4 deleted

Hello @mariodabek, welcome to WordPress Trac!

Thanks for the report. This was already reported in #42500 and #26577. I'm therefore going to close this as duplicate.

#3 @SergeyBiryukov
4 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.