Changeset 17062
- Timestamp:
- 12/19/2010 07:22:31 PM (14 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r17056 r17062 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 -
trunk/wp-admin/includes/post.php
r16901 r17062 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;
Note: See TracChangeset
for help on using the changeset viewer.