mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Remove comment_count_cache. fixes #2670
git-svn-id: https://develop.svn.wordpress.org/trunk@3716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1313,7 +1313,7 @@ function update_post_category_cache($post_ids) {
|
||||
}
|
||||
|
||||
function update_post_caches(&$posts) {
|
||||
global $post_cache, $category_cache, $comment_count_cache, $post_meta_cache;
|
||||
global $post_cache, $category_cache, $post_meta_cache;
|
||||
global $wpdb;
|
||||
|
||||
// No point in doing all this work if we didn't match any posts.
|
||||
@@ -1324,7 +1324,6 @@ function update_post_caches(&$posts) {
|
||||
for ($i = 0; $i < count($posts); $i++) {
|
||||
$post_id_array[] = $posts[$i]->ID;
|
||||
$post_cache[$posts[$i]->ID] = &$posts[$i];
|
||||
$comment_count_cache[$posts[$i]->ID] = $posts[$i]->comment_count;
|
||||
}
|
||||
|
||||
$post_id_list = implode(',', $post_id_array);
|
||||
|
||||
Reference in New Issue
Block a user