Changeset 23904 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 04/04/2013 04:03:21 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/ajax-actions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23898 r23904 2187 2187 2188 2188 $revision_from_date_author = ''; 2189 $is_current_revision = false; 2189 2190 $count++; 2190 2191 // return blank data for diffs to the left of the left handle (for right handel model) … … 2236 2237 $revision_from_date_author = sprintf( $autosavef, $revision_from_date_author ); 2237 2238 2238 if ( $revision->post_modified === $post->post_modified ) 2239 if ( $revision->post_modified === $post->post_modified ) { 2239 2240 $revision_date_author = sprintf( $currentf, $revision_date_author ); 2240 elseif ( wp_is_post_autosave( $revision ) ) 2241 $is_current_revision = true; 2242 } elseif ( wp_is_post_autosave( $revision ) ) { 2241 2243 $revision_date_author = sprintf( $autosavef, $revision_date_author ); 2244 } 2242 2245 2243 2246 /* translators: revision date short format, see http://php.net/date */ … … 2276 2279 'restoreLink' => urldecode( $restore_link ), 2277 2280 'revision_toload' => true, 2278 'previous_revision_id' => $previous_revision_id 2281 'previous_revision_id' => $previous_revision_id, 2282 'is_current_revision' => $is_current_revision, 2279 2283 ); 2280 2284 }
Note: See TracChangeset
for help on using the changeset viewer.