mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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