WordPress.org

Make WordPress Core

Ticket #11088: allow_reverse_diffs.11088.diff

File allow_reverse_diffs.11088.diff, 659 bytes (added by filosofo, 4 years ago)
  • wp-admin/revision.php

     
    5757                break; 
    5858        } 
    5959 
    60         // Don't allow reverse diffs? 
    61         if ( strtotime($right_revision->post_modified_gmt) < strtotime($left_revision->post_modified_gmt) ) { 
    62                 $redirect = add_query_arg( array( 'left' => $right, 'right' => $left ) ); 
    63                 break; 
    64         } 
    65  
    6660        if ( $left_revision->ID == $right_revision->post_parent ) // right is a revision of left 
    6761                $post =& $left_revision; 
    6862        elseif ( $left_revision->post_parent == $right_revision->ID ) // left is a revision of right