Ticket #11052: 11052.diff
File 11052.diff, 545 bytes (added by , 15 years ago) |
---|
-
wp-includes/post.php
1610 1610 $previous_status = 'new'; 1611 1611 } 1612 1612 1613 if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) ) {1613 if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) && ('attachment' != $post_type) ) { 1614 1614 if ( $wp_error ) 1615 1615 return new WP_Error('empty_content', __('Content, title, and excerpt are empty.')); 1616 1616 else