diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index c71673579f..b1127fa9d1 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -1916,6 +1916,8 @@ function wp_update_comment_count_now($post_id) { clean_post_cache( $post ); + wp_cache_delete( "comments-{$post_id}", 'counts' ); + /** * Fires immediately after a post's comment count is updated in the database. * @@ -2324,7 +2326,6 @@ function xmlrpc_pingback_error( $ixr_error ) { function clean_comment_cache($ids) { foreach ( (array) $ids as $id ) { wp_cache_delete( $id, 'comment' ); - wp_cache_delete( "comment-{$id}", 'counts' ); } wp_cache_set( 'last_changed', microtime(), 'comment' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 1532310ca8..3aae69f693 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34130'; +$wp_version = '4.4-alpha-34131'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.