Changeset 23889
- Timestamp:
- 04/03/2013 04:34:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23872 r23889 1043 1043 unset($_POST['post_category']); 1044 1044 1045 $do_autosave = (bool) $_POST['autosave'];1046 1045 $data = ''; 1047 1046 $supplemental = array(); 1048 1047 $id = $revision_id = 0; 1049 1050 if ( ! $user_id = get_current_user_id() )1051 wp_die('-1');1052 1048 1053 1049 $post_id = (int) $_POST['post_id']; … … 1065 1061 } 1066 1062 1067 if ( $do_autosave) {1063 if ( ! empty( $_POST['autosave'] ) ) { 1068 1064 // Drafts and auto-drafts are just overwritten by autosave for the same user 1069 1065 if ( $user_id == $post->post_author && ( 'auto-draft' == $post->post_status || 'draft' == $post->post_status ) ) {
Note: See TracChangeset
for help on using the changeset viewer.