Notice fixes from DD32. see #7509

git-svn-id: http://svn.automattic.com/wordpress/trunk@9596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-11-10 18:54:18 +00:00
parent 3b65a42c5f
commit 545da15950
16 changed files with 54 additions and 40 deletions

View File

@@ -1336,6 +1336,10 @@ function wp_insert_post($postarr = array(), $wp_error = false) {
$post_category = array(get_option('default_category'));
}
//Set the default tag list
if ( !isset($tags_input) )
$tags_input = array();
if ( empty($post_author) )
$post_author = $user_ID;