Fix accidental revert of revisions comparison in [23981]

git-svn-id: http://core.svn.wordpress.org/trunk@23982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-04-13 00:45:47 +00:00
parent 76302d7d3c
commit e315287283

View File

@ -2126,7 +2126,7 @@ function wp_ajax_revisions_data() {
$left_revision = get_post( $post_id );
// make sure the right revision is the most recent
if ( $compare_two_mode && $right_revision->ID < $left_revision->ID ) {
if ( $compare_two_mode && $right_revision->post_date < $left_revision->post_date ) {
$temp = $left_revision;
$left_revision = $right_revision;
$right_revision = $temp;