Add $wp_query global to some functions that use is_single/is_archive and is_search so it's not trying to find an empty property (even though those functions globalize themself, good practice?, dunno)

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-30 06:03:01 -08:00
parent a8a94eef46
commit 3615389411
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function comicpress_display_post_tags() {
} }
function comicpress_display_comment_link() { function comicpress_display_comment_link() {
global $post; global $post, $wp_query;
if ('open' == $post->comment_status && !is_page()) { if ('open' == $post->comment_status && !is_page()) {
if (comicpress_check_child_file('partials/commentlink') == false && !is_single()) { 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"; $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";