WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#42500 closed defect (bug)

Enable Revisions when there is 1 — at Initial Version

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

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.