From 0d8a84bb9842028d246a17f921ea2fce3951c186 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 21 Sep 2009 14:43:31 +0000 Subject: [PATCH] Special case comment type 'all'. Fixes comment search. fixes #10463 git-svn-id: https://develop.svn.wordpress.org/trunk@11954 602fd350-edb4-49c9-b593-d223f7449a82 --- 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