Ticket #23901: 23901.8.diff
File 23901.8.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-includes/post-template.php
1423 1423 $titlef = _x( '%1$s', 'post revision' ); 1424 1424 1425 1425 // Since 3.6 revisions include a copy of the current post data as a revision. 1426 // The following removes that revision when $parent == false1426 // The following adds that revision when $parent == true 1427 1427 $parent_included = _wp_get_post_revision_version( reset( $revisions ) ) > 0; 1428 if ( $parent_included && ! $parent ) 1429 array_shift( $revisions ); 1430 elseif ( ! $parent_included && $parent ) 1428 if ( ! $parent_included && $parent ) 1431 1429 array_unshift( $revisions, $post ); 1432 1430 1433 1431 $rows = $right_checked = ''; -
wp-admin/includes/ajax-actions.php
2129 2129 $left_revision = get_post( $post_id ); 2130 2130 2131 2131 // make sure the right revision is the most recent 2132 if ( $compare_two_mode && $right_revision-> ID < $left_revision->ID) {2132 if ( $compare_two_mode && $right_revision->post_date < $left_revision->post_date ) { 2133 2133 $temp = $left_revision; 2134 2134 $left_revision = $right_revision; 2135 2135 $right_revision = $temp;