Ticket #25386: 25386.patch
| File 25386.patch, 1.0 KB (added by , 13 years ago) |
|---|
-
wp-includes/comment.php
231 231 'post_name' => '', 232 232 'post_parent' => '', 233 233 'post_status' => '', 234 'comment__in' => array(), 235 'comment__not_in' => array(), 234 236 'post_type' => '', 235 237 'status' => '', 236 238 'type' => '', … … 349 351 } elseif ( ! empty( $type ) ) { 350 352 $where .= $wpdb->prepare( ' AND comment_type = %s', $type ); 351 353 } 354 if ( ! empty( $comment__in ) ) { 355 $comment__in = implode( ',', array_map( 'absint', $comment__in ) ); 356 $where .= " AND {$wpdb->comments}.comment_ID IN ($comment__in)"; 357 } elseif ( ! empty( $comment__not_in ) ) { 358 $comment__not_in = implode( ',', array_map( 'absint', $comment__not_in ) ); 359 $where .= " AND {$wpdb->comments}.comment_ID NOT IN ($comment__not_in)"; 360 } 352 361 if ( '' !== $parent ) 353 362 $where .= $wpdb->prepare( ' AND comment_parent = %d', $parent ); 354 363 if ( '' !== $user_id )