Ticket #21571: comment.diff
File comment.diff, 588 bytes (added by , 12 years ago) |
---|
-
comment.php
314 314 $where .= " AND comment_type = ''"; 315 315 } elseif( 'pings' == $type ) { 316 316 $where .= ' AND comment_type IN ("pingback", "trackback")'; 317 } elseif ( ! empty( $type ) && is_array( $type ) ) { 318 $type = array_map( 'sanitize_key', $type ); 319 $where .= " AND comment_type IN ('" . join("', '", $type) . "')"; 317 320 } elseif ( ! empty( $type ) ) { 318 321 $where .= $wpdb->prepare( ' AND comment_type = %s', $type ); 319 322 }