[wp-trac] [WordPress Trac] #50107: You are not showing revision on the edit screen unless there is more than 1

WordPress Trac noreply at wordpress.org
Wed May 6 19:10:23 UTC 2020


#50107: You are not showing revision on the edit screen unless there is more than 1
--------------------------+------------------------
 Reporter:  mariodabek    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Revisions     |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Description changed by SergeyBiryukov:

Old description:

> 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.

New description:

 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.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50107#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list