Check excerpt when determing if a post is empty. #3097
git-svn-id: http://svn.automattic.com/wordpress/trunk@4159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3e076ba536
commit
f8c681b9ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue