Ticket #31760: 31760.patch
File 31760.patch, 499 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/post.php
1667 1667 } else { 1668 1668 $is_autosave = true; 1669 1669 1670 if ( 'auto-draft' == $_POST['post_status'] )1670 if ( isset( $_POST['post_status'] ) && 'auto-draft' == $_POST['post_status'] ) 1671 1671 $_POST['post_status'] = 'draft'; 1672 1672 1673 1673 $saved_post_id = wp_create_post_autosave( $post->ID );