Ticket #15882: 15882.2.diff
File 15882.2.diff, 1.3 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/meta-boxes.php
247 247 if ( is_array( $post_formats[0] ) ) : 248 248 $post_format = get_post_format( $post->ID ); 249 249 if ( !$post_format ) 250 $post_format = get_option('default_post_format', '0');250 $post_format = '0'; 251 251 $post_format_display = get_post_format_string( $post_format ); 252 252 // Add in the current one if it isn't there yet, in case the current theme doesn't support it 253 253 if ( $post_format && !in_array( $post_format, $post_formats[0] ) ) -
wp-admin/includes/post.php
391 391 wp_delete_post( $delete, true ); // Force delete 392 392 $post_id = wp_insert_post( array( 'post_title' => __( 'Auto Draft' ), 'post_type' => $post_type, 'post_status' => 'auto-draft' ) ); 393 393 $post = get_post( $post_id ); 394 if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) && get_option( 'default_post_format' ) ) 395 set_post_format( $post, get_option( 'default_post_format' ) ); 394 396 } else { 395 397 $post->ID = 0; 396 398 $post->post_author = '';