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
This commit is contained in:
parent
2d11d6cd90
commit
3ca5bbb585
@ -1815,12 +1815,6 @@ function wp_list_comments( $args = array(), $comments = null ) {
|
|||||||
} else {
|
} else {
|
||||||
$_comments = $wp_query->comments;
|
$_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') )
|
if ( '' === $r['per_page'] && get_option('page_comments') )
|
||||||
|
@ -1292,15 +1292,6 @@ class WP_Query {
|
|||||||
*/
|
*/
|
||||||
public $thumbnails_cached = false;
|
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.
|
* Cached list of search stopwords.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user