From 3ca5bbb5853926f6206964b03107003da9a61acb Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 16 Sep 2015 18:13:19 +0000 Subject: [PATCH] Revert [33925], by-reference array manipulation is breaking comments in some themes. This implementation is losing its shine. See #16894. git-svn-id: https://develop.svn.wordpress.org/trunk@34245 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 6 ------ src/wp-includes/query.php | 9 --------- 2 files changed, 15 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 8490ac1082..016b515d78 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1815,12 +1815,6 @@ function wp_list_comments( $args = array(), $comments = null ) { } else { $_comments = $wp_query->comments; } - - if ( ! $wp_query->comment_meta_cached ) { - $comment_ids = wp_list_pluck( $_comments, 'comment_ID' ); - update_meta_cache( 'comment', $comment_ids ); - $wp_query->comment_meta_cached = true; - } } if ( '' === $r['per_page'] && get_option('page_comments') ) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 5648166e1b..7bcecf4ad5 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -1292,15 +1292,6 @@ class WP_Query { */ public $thumbnails_cached = false; - /** - * Set if comment meta has already been cached - * - * @since 4.4.0 - * @access public - * @var bool - */ - public $comment_meta_cached = false; - /** * Cached list of search stopwords. *