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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user