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

git-svn-id: https://develop.svn.wordpress.org/trunk@24026 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2013-04-18 05:02:57 +00:00
parent d00b790c8e
commit 419e62a26d
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ if ( post_type_supports($post_type, 'revisions') && 'auto-draft' != $post->post_
$revisions = wp_get_post_revisions( $post_ID );
// Check if the revisions have been upgraded
if ( ! empty( $revisions ) && _wp_get_post_revision_version( reset( $revisions ) ) < 1 )
if ( ! empty( $revisions ) && _wp_get_post_revision_version( end( $revisions ) ) < 1 )
_wp_upgrade_revisions_of_post( $post, $revisions );
// We should aim to show the revisions metabox only when there are revisions.