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
This commit is contained in:
ryan 2009-09-21 14:43:31 +00:00
parent e803c73428
commit 8a0bafef24

View File

@ -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