diff --git a/wp-includes/post.php b/wp-includes/post.php index 45827dc912..a98bae3ecd 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1986,7 +1986,8 @@ function wp_insert_attachment($object, $file = false, $parent = 0) { $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID, 'ping_status' => get_option('default_ping_status'), 'post_parent' => 0, - 'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => ''); + 'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => '', + 'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => ''); $object = wp_parse_args($object, $defaults); if ( !empty($parent) )