From 9ecd5ff925d44e4f690ba2c7ba1e83e31f17037e Mon Sep 17 00:00:00 2001 From: westi Date: Sat, 6 Feb 2010 14:49:54 +0000 Subject: [PATCH] Add defaults for 'post_content' and 'post_title' in wp_insert_post(). See #11889. git-svn-id: http://svn.automattic.com/wordpress/trunk@12990 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 df1dd591e4..c8dce0b197 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1919,7 +1919,8 @@ function wp_insert_post($postarr = array(), $wp_error = false) { $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' => '', - 'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '', 'import_id' => 0); + 'guid' => '', 'post_content_filtered' => '', 'post_excerpt' => '', 'import_id' => 0, + 'post_content' => '', 'post_title' => ''); $postarr = wp_parse_args($postarr, $defaults); $postarr = sanitize_post($postarr, 'db');