[wp-trac] [WordPress Trac] #42500: Enable Revisions when there is 1
WordPress Trac
noreply at wordpress.org
Fri Nov 10 07:55:22 UTC 2017
#42500: Enable Revisions when there is 1
-----------------------------+-----------------------------
Reporter: garrett-eclipse | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: 4.9
Severity: normal | Keywords:
Focuses: administration |
-----------------------------+-----------------------------
Hello,
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 ) {
https://github.com/WordPress/WordPress/blob/a72be13ec0b57a2831d75540fd1892d1bd121f3b
/wp-admin/edit-form-advanced.php#L234
Can this be amended to be > 0 or event just `if ( count( $revisions ) ) {`
Thanks
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42500>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list