Ticket #31081: 31081.2.diff
File 31081.2.diff, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-includes/comment-template.php
1202 1202 $wp_query->comments = apply_filters( 'comments_array', $comments, $post->ID ); 1203 1203 $comments = &$wp_query->comments; 1204 1204 $wp_query->comment_count = count($wp_query->comments); 1205 update_comment_cache($wp_query->comments);1206 1205 1207 1206 if ( $separate_comments ) { 1208 1207 $wp_query->comments_by_type = separate_comments($comments); -
src/wp-includes/comment.php
893 893 $comments = apply_filters_ref_array( 'the_comments', array( $results, &$this ) ); 894 894 895 895 wp_cache_add( $cache_key, $comments, 'comment' ); 896 if ( '*' === $fields ) { 897 update_comment_cache( $comments ); 898 } 896 899 897 900 $this->comments = $comments; 898 901 return $this->comments;