Make WordPress Core

Changeset 23832


Ignore:
Timestamp:
03/28/2013 02:49:55 AM (12 years ago)
Author:
markjaquith
Message:

Make sure that the ID of the right revision is not less than the ID of the left revision

see #23497

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r23831 r23832  
    21312131        $right_revision = get_post( $single_revision_id );
    21322132
     2133    // make sure the right revision is the most recent
     2134    if ( $compare_two_mode && $right_revision->ID < $left_revision->ID ) {
     2135        $temp = $left_revision;
     2136        $left_revision = $right_revision;
     2137        $right_revision = $temp;
     2138    }
     2139
    21332140        $linesadded=0;
    21342141        $linesdeleted=0;
Note: See TracChangeset for help on using the changeset viewer.