Make WordPress Core


Ignore:
Timestamp:
11/24/2009 04:52:32 PM (17 years ago)
Author:
ryan
Message:

Don't require titles for attachments. Props caesarsgrunt. fixes #11052

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r12265 r12273  
    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.'));
Note: See TracChangeset for help on using the changeset viewer.