Changeset 24015
- Timestamp:
- 04/17/2013 05:49:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r23986 r24015 2656 2656 } 2657 2657 2658 if ( empty( $post_format ) )2659 $post_format = '';2660 2661 2658 $maybe_empty = ! $post_content && ! $post_title && ! $post_excerpt && post_type_supports( $post_type, 'editor' ) 2662 2659 && post_type_supports( $post_type, 'title' ) && post_type_supports( $post_type, 'excerpt' ) 2663 && ! in_array( $post_format, array( 'audio', 'video', 'quote', 'image' ) );2660 && ! in_array( get_post_format( $post_ID ), array( 'audio', 'video', 'quote', 'image' ) ); 2664 2661 2665 2662 if ( apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) {
Note: See TracChangeset
for help on using the changeset viewer.