mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@4831 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -522,6 +522,9 @@ function wp_insert_post($postarr = array()) {
|
||||
}
|
||||
$post_cat = $post_category[0];
|
||||
|
||||
if ( empty($post_tags) )
|
||||
$post_tags = array();
|
||||
|
||||
if ( empty($post_author) )
|
||||
$post_author = $user_ID;
|
||||
|
||||
@@ -646,6 +649,7 @@ function wp_insert_post($postarr = array()) {
|
||||
}
|
||||
|
||||
wp_set_post_categories($post_ID, $post_category);
|
||||
wp_set_post_tags($post_ID, $post_tags);
|
||||
|
||||
if ( 'page' == $post_type ) {
|
||||
clean_page_cache($post_ID);
|
||||
|
||||
Reference in New Issue
Block a user