Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#42500 closed defect (bug)

Enable Revisions when there is 1 — at Version 1

Reported by: garrett-eclipse Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Revisions Keywords:
Focuses: administration Cc:

Description (last modified by dd32)


I was trying to get revisions to appear for a post and found that it requires 2 revisions to operate due to the conditional;

	if ( count( $revisions ) > 1 ) {


Can this be amended to be > 0 or event just if ( count( $revisions ) ) {


Change History (1)

#1 @dd32
3 years ago

  • Description modified (diff)

For some context of why > 1, I believe that's due to the expected auto-draft which isn't really a revision.

So you'd have 1 "revision" = Post + Auto-Draft (the auto-draft shouldn't have any real content at this point), and then 2 revisions = Post + Auto-Draft + First actual revision (that is different and can then be compared to).

Displaying the link when there isn't any revisions at all doesn't seem like a very good UX to me, perhaps you can expand on why you think that'd be a good idea?

Note: See TracTickets for help on using tickets.