WordPress.org

Make WordPress Core

Changeset 24026


Ignore:
Timestamp:
04/18/2013 05:02:57 AM (7 years ago)
Author:
azaozz
Message:

Revisions: look at the version of the earliest revision when checking whether to upgrade the revisions authors, see #16215

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r24011 r24026  
    235235
    236236    // Check if the revisions have been upgraded
    237     if ( ! empty( $revisions ) && _wp_get_post_revision_version( reset( $revisions ) ) < 1 )
     237    if ( ! empty( $revisions ) && _wp_get_post_revision_version( end( $revisions ) ) < 1 )
    238238        _wp_upgrade_revisions_of_post( $post, $revisions );
    239239
Note: See TracChangeset for help on using the changeset viewer.