WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42500


Ignore:
Timestamp:
11/10/2017 08:01:11 AM (2 years ago)
Author:
dd32
Comment:

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?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42500 – Description

    initial v1  
    22
    33I was trying to get revisions to appear for a post and found that it requires 2 revisions to operate due to the conditional;
     4{{{
    45        if ( count( $revisions ) > 1 ) {
     6}}}
    57https://github.com/WordPress/WordPress/blob/a72be13ec0b57a2831d75540fd1892d1bd121f3b/wp-admin/edit-form-advanced.php#L234
    68