Changeset 46087 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 09/10/2019 07:03:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r46086 r46087 387 387 * Return a non-null value to bypass WordPress's default comment queries. 388 388 * 389 * The expected return type from this filter depends on the value passed in the request query_vars :390 * When $this->query_vars['count']is set, the filter should return the comment count as an int.389 * The expected return type from this filter depends on the value passed in the request query_vars. 390 * When `$this->query_vars['count']` is set, the filter should return the comment count as an int. 391 391 * When `'ids' == $this->query_vars['fields']`, the filter should return an array of comment ids. 392 392 * Otherwise the filter should return an array of WP_Comment objects. … … 395 395 * 396 396 * @param array|int|null $comment_data Return an array of comment data to short-circuit WP's comment query, 397 * the comment count as an integer if `$this->query_vars['count']` is set, 397 398 * or null to allow WP to run its normal queries. 398 399 * @param WP_Comment_Query $this The WP_Comment_Query instance, passed by reference.
Note: See TracChangeset
for help on using the changeset viewer.