mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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:
parent
76302d7d3c
commit
e315287283
@ -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