# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\xampp\htdocs\wordtrunk\wp-includes
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: comment.php
--- comment.php Base (BASE)
+++ comment.php Locally Modified (Based On LOCAL)
@@ -327,9 +327,15 @@
 		$post_fields = array_filter( compact( array( 'post_author', 'post_name', 'post_parent', 'post_status', 'post_type', ) ) );
 		if ( ! empty( $post_fields ) ) {
 			$join = "JOIN $wpdb->posts ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID";
-			foreach( $post_fields as $field_name => $field_value )
-				$where .= $wpdb->prepare( " AND {$wpdb->posts}.{$field_name} = %s", $field_value );
+			foreach( $post_fields as $field_name => $field_value ) {
+                                $field_value = (array)$field_value;
+                                $where .= $wpdb->prepare( " AND ( {$wpdb->posts}.{$field_name} = %s", array_pop($field_value));
+                                foreach ( $field_value as $value ) {
+                                        $where .= $wpdb->prepare( " OR {$wpdb->posts}.{$field_name} = %s", $value );
 		}
+                                $where .= $wpdb->prepare( " ) ");
+                        }
+		}
 
 		$pieces = array( 'fields', 'join', 'where', 'orderby', 'order', 'limits' );
 		$clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) );
