From 1b08613a8189be44deab2438e606553e3a2b442a Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 26 Feb 2008 18:51:45 +0000 Subject: [PATCH] Add some defaults for wp_insert_attachment. fixes #6006 git-svn-id: http://svn.automattic.com/wordpress/trunk@7042 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 45827dc91..a98bae3ec 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) )