WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/28/2013 01:51:12 AM (8 years ago)
Author:
markjaquith
Message:

correct a revision/tooltip mismatch.

props adamsilverstein. see #23497

File:
1 edited

Legend:

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

    r23769 r23831  
    21312131        $right_revision = get_post( $single_revision_id );
    21322132
    2133         //
    2134         //make sure the left revision is the most recent
    2135         //
    2136 
    2137         if ( strtotime( $right_revision->post_modified_gmt ) < strtotime( $left_revision->post_modified_gmt ) ) {
    2138             $temp = $left_revision;
    2139             $left_revision = $right_revision;
    2140             $right_revision = $temp;
    2141         }
    2142 
    21432133        $linesadded=0;
    21442134        $linesdeleted=0;
     
    21832173    } //end single model fetch
    21842174
    2185     //fetch the list of revisions available
    2186 
    2187     //if we are comparing two revisions, the first 'revision' represented by the leftmost
    2188     //slider position is the current revision, prepend a comparison to this revision
    2189     if ( ! wp_first_revision_matches_current_version( $post_id ) ) //revisions don't have current version
    2190         array_unshift( $revisions, get_post( $post_id ) ) ;
    2191     //$revisions->append ( get_post( $post_id ) );
    2192     //error_log( var_dump( $revisions ));
    21932175    $count = -1;
    21942176
Note: See TracChangeset for help on using the changeset viewer.