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
This commit is contained in:
Ryan Boren 2009-09-21 14:43:31 +00:00
parent fd912ff469
commit 0d8a84bb98
1 changed files with 2 additions and 0 deletions

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