Make WordPress Core

Ticket #23497: 23497.41.diff

File 23497.41.diff, 660 bytes (added by adamsilverstein, 12 years ago)

bug fixes

  • wp-admin/includes/ajax-actions.php

     
    21302130        if ( 0 != $single_revision_id ) {
    21312131                $right_revision = get_post( $single_revision_id );
    21322132
     2133        //make sure the left revision is the most recent
     2134        //
     2135
     2136        if ( $compare_two_mode && strtotime( $right_revision->post_modified_gmt ) < strtotime( $left_revision->post_modified_gmt ) ) {
     2137                $temp = $left_revision;
     2138                $left_revision = $right_revision;
     2139                $right_revision = $temp;
     2140        }
     2141
    21332142                $linesadded=0;
    21342143                $linesdeleted=0;
    21352144