From 8a0bafef24367483ebc5b4217888025d2b0ece91 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Sep 2009 14:43:31 +0000 Subject: [PATCH] Special case comment type 'all'. Fixes comment search. fixes #10463 git-svn-id: http://svn.automattic.com/wordpress/trunk@11954 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index a28a2ae873..881dd5aef9 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2042,6 +2042,8 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num, $post = 0 $typesql = "AND c.comment_type = ''"; elseif ( 'pings' == $type ) $typesql = "AND ( c.comment_type = 'pingback' OR c.comment_type = 'trackback' )"; + elseif ( 'all' == $type ) + $typesql = ''; elseif ( !empty($type) ) $typesql = $wpdb->prepare("AND c.comment_type = %s", $type); else