Changeset 23890
- Timestamp:
- 04/03/2013 04:37:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23889 r23890 1063 1063 if ( ! empty( $_POST['autosave'] ) ) { 1064 1064 // Drafts and auto-drafts are just overwritten by autosave for the same user 1065 if ( $user_id== $post->post_author && ( 'auto-draft' == $post->post_status || 'draft' == $post->post_status ) ) {1065 if ( get_current_user_id() == $post->post_author && ( 'auto-draft' == $post->post_status || 'draft' == $post->post_status ) ) { 1066 1066 $id = edit_post(); 1067 1067 } else { // Non drafts are not overwritten. The autosave is stored in a special post revision for each user.
Note: See TracChangeset
for help on using the changeset viewer.