Remove notoptions caching. Multile rewrite_rules options were being created. See #3692 #2268

git-svn-id: https://develop.svn.wordpress.org/trunk@4831 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-01-30 01:43:39 +00:00
parent 13a2f96ea7
commit b0f28a6dff
7 changed files with 34 additions and 16 deletions
+4
View File
@@ -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);