diff --git a/wp-includes/post.php b/wp-includes/post.php index 9f584e3d6c..5ce85f4799 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1610,7 +1610,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) { $previous_status = 'new'; } - if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) ) { + if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) && ('attachment' != $post_type) ) { if ( $wp_error ) return new WP_Error('empty_content', __('Content, title, and excerpt are empty.')); else