Ticket #13133: 13133.1.diff
| File 13133.1.diff, 449 bytes (added by , 16 years ago) |
|---|
-
post.php
156 156 } 157 157 158 158 $post_data = _wp_translate_postdata( true, $post_data ); 159 if ( 'autosave' != $post_data['action'] && 'auto-draft' == $post_data['post_status'] ) { 160 $post_data['post_status'] = 'draft'; 161 } 159 162 if ( is_wp_error($post_data) ) 160 163 wp_die( $post_data->get_error_message() ); 161 164