Changeset 23831 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 03/28/2013 01:51:12 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23769 r23831 2131 2131 $right_revision = get_post( $single_revision_id ); 2132 2132 2133 //2134 //make sure the left revision is the most recent2135 //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 2143 2133 $linesadded=0; 2144 2134 $linesdeleted=0; … … 2183 2173 } //end single model fetch 2184 2174 2185 //fetch the list of revisions available2186 2187 //if we are comparing two revisions, the first 'revision' represented by the leftmost2188 //slider position is the current revision, prepend a comparison to this revision2189 if ( ! wp_first_revision_matches_current_version( $post_id ) ) //revisions don't have current version2190 array_unshift( $revisions, get_post( $post_id ) ) ;2191 //$revisions->append ( get_post( $post_id ) );2192 //error_log( var_dump( $revisions ));2193 2175 $count = -1; 2194 2176
Note: See TracChangeset
for help on using the changeset viewer.