Make WordPress Core

Ticket #11052: 11052.diff

File 11052.diff, 545 bytes (added by caesarsgrunt, 15 years ago)
  • wp-includes/post.php

     
    16101610                $previous_status = 'new';
    16111611        }
    16121612
    1613         if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) ) {
     1613        if ( ('' == $post_content) && ('' == $post_title) && ('' == $post_excerpt) && ('attachment' != $post_type) ) {
    16141614                if ( $wp_error )
    16151615                        return new WP_Error('empty_content', __('Content, title, and excerpt are empty.'));
    16161616                else