Add CSS class in if it's not empty when there's no comments. fixes #2180

git-svn-id: https://develop.svn.wordpress.org/trunk@5165 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-01 15:57:13 +00:00
parent 616570aadc
commit d57de9f654
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com
$number = get_comments_number($id);
if ( 0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status ) {
echo $none;
echo '<span' . ((!empty($CSSclass)) ? ' class="' . $CSSclass . '"' : '') . '>' . $none . '</span>';
return;
}