Ticket #16894: 16894.3.diff
File 16894.3.diff, 1.0 KB (added by , 9 years ago) |
---|
-
src/wp-includes/comment-template.php
2116 2116 } else { 2117 2117 $_comments = $wp_query->comments; 2118 2118 } 2119 2120 if ( ! $wp_query->comment_meta_cached ) { 2121 $comment_ids = wp_list_pluck( $_comments, 'comment_ID' ); 2122 update_meta_cache( 'comment', $comment_ids ); 2123 $wp_query->comment_meta_cached = true; 2124 } 2119 2125 } 2120 2126 2121 2127 if ( '' === $r['per_page'] && get_option('page_comments') ) -
src/wp-includes/query.php
1293 1293 public $thumbnails_cached = false; 1294 1294 1295 1295 /** 1296 * Set if comment meta has already been cached 1297 * 1298 * @since 4.4.0 1299 * @access public 1300 * @var bool 1301 */ 1302 public $comment_meta_cached = false; 1303 1304 /** 1296 1305 * Cached list of search stopwords. 1297 1306 * 1298 1307 * @since 3.7.0