Make WordPress Core


Ignore:
Timestamp:
02/28/2013 04:10:45 PM (12 years ago)
Author:
westi
Message:

Revisions: Fix up some bugs I introduced while reviewing the mega revisions patch - when comparing two historical revisions only one half of the diff would load

See #23497 props adamsilverstein.

File:
1 edited

Legend:

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

    r23506 r23508  
    21412141    $showautosaves = isset( $_GET['showautosaves'] ) ? $_GET['showautosaves'] : '';
    21422142    $show_split_view = isset( $_GET['show_split_view'] ) ? $_GET['show_split_view'] : '';
    2143     $postid = isset( $_GET['postid'] ) ? absint( $_GET['postid'] ) : '';
     2143    $postid = isset( $_GET['post_id'] ) ? absint( $_GET['post_id'] ) : '';
    21442144
    21452145    $comparetwomode = ( '' == $postid ) ? false : true;
     
    21502150    //
    21512151    $alltherevisions = array();
    2152 
    21532152    if ( '' == $postid )
    21542153        $postid = $compareto;
     
    21592158    if ( ! $revisions = wp_get_post_revisions( $postid ) )
    21602159        return;
     2160
    21612161
    21622162    //if we are comparing two revisions, the first 'revision' represented by the leftmost
Note: See TracChangeset for help on using the changeset viewer.