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:
parent
616570aadc
commit
d57de9f654
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user