X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3b1ea255664edd2deef17f900a655613d20820d..67ba21ec17b4640df9bbe7701072d10ab2b05b63:/wp-includes/post.php diff --git a/wp-includes/post.php b/wp-includes/post.php index 407b33c5..7ae5431b 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1192,7 +1192,7 @@ function wp_delete_post($postid = 0) { foreach ( (array) $children as $child ) clean_page_cache($child->ID); - $wp_rewrite->flush_rules(); + $wp_rewrite->flush_rules(false); } else { clean_post_cache($postid); } @@ -3274,9 +3274,6 @@ function _transition_post_status($new_status, $old_status, $post) { if ( '' == get_the_guid($post->ID) ) $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) ); do_action('private_to_published', $post->ID); // Deprecated, use private_to_publish - // do generic pings once per hour at most - if ( !wp_next_scheduled('do_generic_ping') ) - wp_schedule_single_event(time() + 3600, 'do_generic_ping'); } // Always clears the hook in case the post status bounced from future to draft. @@ -3354,7 +3351,7 @@ function _save_post_hook($post_id, $post) { // Avoid flushing rules for every post during import. if ( !defined('WP_IMPORTING') ) { global $wp_rewrite; - $wp_rewrite->flush_rules(); + $wp_rewrite->flush_rules(false); } } else { clean_post_cache($post_id);