Notice fixes from DD32. see #7509

git-svn-id: https://develop.svn.wordpress.org/trunk@9596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-10 18:54:18 +00:00
parent e25c585f4f
commit 83e002f20b
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;