diff --git a/wp-includes/post.php b/wp-includes/post.php
index 4e7676b..a29e5b7 100644
|
a
|
b
|
function wp_insert_post($postarr, $wp_error = false) {
|
| 2655 | 2655 | $previous_status = 'new'; |
| 2656 | 2656 | } |
| 2657 | 2657 | |
| | 2658 | if ( empty( $post_format ) ) |
| | 2659 | $post_format = ''; |
| | 2660 | |
| 2658 | 2661 | $maybe_empty = ! $post_content && ! $post_title && ! $post_excerpt && post_type_supports( $post_type, 'editor' ) |
| 2659 | | && post_type_supports( $post_type, 'title' ) && post_type_supports( $post_type, 'excerpt' ); |
| | 2662 | && post_type_supports( $post_type, 'title' ) && post_type_supports( $post_type, 'excerpt' ) |
| | 2663 | && ! in_array( $post_format, array( 'audio', 'video', 'quote', 'image' ) ); |
| | 2664 | |
| 2660 | 2665 | if ( apply_filters( 'wp_insert_post_empty_content', $maybe_empty, $postarr ) ) { |
| 2661 | 2666 | if ( $wp_error ) |
| 2662 | 2667 | return new WP_Error( 'empty_content', __( 'Content, title, and excerpt are empty.' ) ); |