Revisions: Correct check for ensuring comparison always from newer to older revision. props adamsilverstein. fixes #24340.

git-svn-id: http://core.svn.wordpress.org/trunk@24263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2013-05-15 19:09:39 +00:00
parent 3be755f28b
commit cf47737813
1 changed files with 2 additions and 2 deletions

View File

@ -2134,8 +2134,8 @@ function wp_ajax_revisions_data() {
if ( ! $compare_to )
$left_revision = get_post( $post_id );
// make sure the right revision is the most recent
if ( $compare_two_mode && $right_revision->post_date < $left_revision->post_date ) {
// make sure the right revision is the most recent, except on oldest revision
if ( $compare_to && $right_revision->post_date < $left_revision->post_date ) {
$temp = $left_revision;
$left_revision = $right_revision;
$right_revision = $temp;