From 09dfc3b8839d636b98d9f0a32de536fc9524f865 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 24 Nov 2009 16:52:32 +0000 Subject: [PATCH] Don't require titles for attachments. Props caesarsgrunt. fixes #11052 git-svn-id: https://develop.svn.wordpress.org/trunk@12273 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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