get_comment_reply_link was improperly placed in the displaypost.php file so it was giving the wrong comments button.

There isn't a return get_comments_popup_link so removed the apply_filters for a lost cause.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-31 07:42:36 -08:00
parent 5de0427d66
commit 637ca2300c
1 changed files with 6 additions and 4 deletions

View File

@ -69,10 +69,12 @@ function comicpress_display_post_tags() {
function comicpress_display_comment_link() {
global $post, $wp_query;
if ('open' == $post->comment_status && !is_page()) {
if (comicpress_check_child_file('partials/commentlink') == false && !is_single()) {
$post_comment_link = "<div class=\"comment-link\">".get_comment_reply_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress'))."</div>\r\n";
apply_filters('comicpress_display_comment_link',$post_comment_link);
if ('open' == $post->comment_status && !is_singular()) {
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
<div class="comment-link">
<?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?>
</div>
<?php
}
}
}