mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@13316 602fd350-edb4-49c9-b593-d223f7449a82
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