Check excerpt when determing if a post is empty. #3097

git-svn-id: https://develop.svn.wordpress.org/trunk@4159 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-09-02 20:19:07 +00:00
parent a8dd93d285
commit d41bf225fb
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ function wp_insert_post($postarr = array()) {
$ping_status = apply_filters('ping_status_pre', $ping_status);
}
if ( ('' == $post_content) && ('' == $post_title) )
if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) )
return 0;
// Make sure we set a valid category