Ticket #32081: comment.diff
File comment.diff, 975 bytes (added by , 10 years ago) |
---|
-
wp-includes/comment.php
696 696 697 697 // Parse comment IDs for an IN clause. 698 698 if ( ! empty( $this->query_vars['comment__in'] ) ) { 699 $where[] = 'comment_ID IN ( '. implode( ',', wp_parse_id_list( $this->query_vars['comment__in'] ) ) . ' )';699 $where[] = "$wpdb->comments.comment_ID IN ( " . implode( ',', wp_parse_id_list( $this->query_vars['comment__in'] ) ) . ' )'; 700 700 } 701 701 702 702 // Parse comment IDs for a NOT IN clause. 703 703 if ( ! empty( $this->query_vars['comment__not_in'] ) ) { 704 $where[] = 'comment_ID NOT IN ( '. implode( ',', wp_parse_id_list( $this->query_vars['comment__not_in'] ) ) . ' )';704 $where[] = "$wpdb->comments.comment_ID NOT IN ( " . implode( ',', wp_parse_id_list( $this->query_vars['comment__not_in'] ) ) . ' )'; 705 705 } 706 706 707 707 // Parse comment post IDs for an IN clause.