Changeset 34205 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 09/15/2015 04:22:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r33898 r34205 93 93 * Sets up the comment query, based on the query vars passed. 94 94 * 95 * @since 4.2.0 95 * @since 4.2.0 96 * @since 4.4.0 `$parent__in` and `$parent__not_in` were added. 96 97 * @access public 97 98 * … … 137 138 * Default: 'DESC'. 138 139 * @type int $parent Parent ID of comment to retrieve children of. Default empty. 140 * @type array $parent__in Array of parent IDs of comments to retrieve children for. Default empty. 141 * @type array $parent__not_in Array of parent IDs of comments *not* to retrieve children for. Default empty. 139 142 * @type array $post_author__in Array of author IDs to retrieve comments for. Default empty. 140 143 * @type array $post_author__not_in Array of author IDs *not* to retrieve comments for. Default empty. … … 487 490 } 488 491 492 // Parse comment parent IDs for an IN clause. 493 if ( ! empty( $this->query_vars['parent__in'] ) ) { 494 $where[] = 'comment_parent IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['parent__in'] ) ) . ' )'; 495 } 496 497 // Parse comment parent IDs for a NOT IN clause. 498 if ( ! empty( $this->query_vars['parent__not_in'] ) ) { 499 $where[] = 'comment_parent NOT IN ( ' . implode( ',', wp_parse_id_list( $this->query_vars['parent__not_in'] ) ) . ' )'; 500 } 501 489 502 // Parse comment post IDs for an IN clause. 490 503 if ( ! empty( $this->query_vars['post__in'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.