Fix accidental revert of revisions comparison in [23981]
git-svn-id: https://develop.svn.wordpress.org/trunk@23982 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7effedba90
commit
8ab406d2fb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user