Ticket #34442: 34442-2.diff
File 34442-2.diff, 1.2 KB (added by , 9 years ago) |
---|
-
wp-includes/comment-template.php
1352 1352 * @type bool $no_found_rows Whether to refrain from querying for found rows. 1353 1353 * @type bool $update_comment_meta_cache Whether to prime cache for comment meta. 1354 1354 * @type bool|string $hierarchical Whether to query for comments hierarchically. 1355 * @type array $include_unapproved Array of IDs or email addresses of users whose unapproved 1356 * comments will be returned by the query regardless of 1357 * `$status`. Default empty. 1355 1358 * @type int $offset Comment offset. 1356 1359 * @type int $number Number of comments to fetch. 1357 1360 * } 1358 1361 */ 1359 1362 $comment_args = apply_filters( 'comments_template_query_args', $comment_args ); 1363 1360 1364 $comment_query = new WP_Comment_Query( $comment_args ); 1361 1365 $_comments = $comment_query->comments; 1362 1366