Changeset 49256 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 10/20/2020 08:09:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r49193 r49256 1435 1435 } 1436 1436 1437 /** 1438 * Filters the arguments used in the top level comments query. 1439 * 1440 * @since 5.6.0 1441 * 1442 * @see WP_Comment_Query::__construct() 1443 * 1444 * @param array $top_level_args { 1445 * The top level query arguments for the comments template. 1446 * 1447 * @type bool $count Whether to return a comment count. 1448 * @type string|array $orderby The field(s) to order by. 1449 * @type int $post_id The post ID. 1450 * @type string|array $status The comment status to limit results by. 1451 * } 1452 */ 1453 $top_level_args = apply_filters( 'comments_template_top_level_query_args', $top_level_args ); 1454 1437 1455 $top_level_count = $top_level_query->query( $top_level_args ); 1438 1456 … … 1464 1482 * } 1465 1483 */ 1466 $comment_args = apply_filters( 'comments_template_query_args', $comment_args ); 1484 $comment_args = apply_filters( 'comments_template_query_args', $comment_args ); 1485 1467 1486 $comment_query = new WP_Comment_Query( $comment_args ); 1468 1487 $_comments = $comment_query->comments;
Note: See TracChangeset
for help on using the changeset viewer.