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:
parent
fd912ff469
commit
0d8a84bb98
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user