From 6573ffa1e17cb62eda31e30d858fa46b2b68c2c4 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 18 Apr 2013 05:02:57 +0000 Subject: [PATCH] Revisions: look at the version of the earliest revision when checking whether to upgrade the revisions authors, see #16215 git-svn-id: http://core.svn.wordpress.org/trunk@24026 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index ad44a52ffb..533880419e 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -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.