Ticket #27734: 27734.diff
| File 27734.diff, 989 bytes (added by , 13 years ago) |
|---|
-
src/wp-admin/includes/post.php
203 203 _wp_upgrade_revisions_of_post( $post, wp_get_post_revisions( $post_ID ) ); 204 204 } 205 205 206 if ( ( empty( $post_data['action'] ) || 'autosave' != $post_data['action'] ) && 'auto-draft' == $post_data['post_status'] ) {207 $post_data['post_status'] = 'draft';208 }209 210 206 if ( isset($post_data['visibility']) ) { 211 207 switch ( $post_data['visibility'] ) { 212 208 case 'public' : … … 227 223 if ( is_wp_error($post_data) ) 228 224 wp_die( $post_data->get_error_message() ); 229 225 226 if ( ( empty( $post_data['action'] ) || 'autosave' != $post_data['action'] ) && 'auto-draft' == $post_data['post_status'] ) { 227 $post_data['post_status'] = 'draft'; 228 } 229 230 230 // Post Formats 231 231 if ( isset( $post_data['post_format'] ) ) 232 232 set_post_format( $post_ID, $post_data['post_format'] );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)