Whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@13316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3138,7 +3138,7 @@ function wp_insert_attachment($object, $file = false, $parent = 0) {
|
||||
|
||||
$post_type = 'attachment';
|
||||
$post_status = 'inherit';
|
||||
|
||||
|
||||
// Make sure we set a valid category.
|
||||
if ( !isset($post_category) || 0 == count($post_category) || !is_array($post_category) ) {
|
||||
// 'post' requires at least one category.
|
||||
|
||||
Reference in New Issue
Block a user