[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 17:51:12 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: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: 5.4
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
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>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list