Ticket #18713: 18713.diff
File 18713.diff, 663 bytes (added by , 14 years ago) |
---|
-
wp-includes/post.php
2435 2435 $previous_status = 'new'; 2436 2436 } 2437 2437 2438 if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) && ('attachment' != $post_type) ) { 2438 $empty_content = '' == $post_content && '' == $post_title && '' == $post_excerpt && 'attachment' != $post_type; 2439 if ( apply_filters( 'wp_insert_post_empty_content', $empty_content, $postarr ) ) { 2439 2440 if ( $wp_error ) 2440 2441 return new WP_Error('empty_content', __('Content, title, and excerpt are empty.')); 2441 2442 else