Changeset 19593 for trunk/wp-admin/includes/post.php
- Timestamp:
- 12/13/2011 11:45:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r19448 r19593 1260 1260 return $translated; 1261 1261 1262 // Only store one autosave. 1262 // Only store one autosave. If there is already an autosave, overwrite it. 1263 1263 if ( $old_autosave = wp_get_post_autosave( $post_id ) ) { 1264 1264 $new_autosave = _wp_post_revision_fields( $_POST, true ); … … 1321 1321 if ( 'draft' == $post->post_status ) { 1322 1322 $id = edit_post(); 1323 } else { // Non drafts are not overwritten. 1323 } else { // Non drafts are not overwritten. The autosave is stored in a special post revision. 1324 1324 $id = wp_create_post_autosave( $post->ID ); 1325 1325 if ( ! is_wp_error($id) )
Note: See TracChangeset
for help on using the changeset viewer.