From 3615389411a6580d576bd63b2af22d603c3c0f0e Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Wed, 30 Dec 2009 06:03:01 -0800 Subject: [PATCH] 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) --- functions/displaypost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/displaypost.php b/functions/displaypost.php index 47b3cb5..a96f03b 100644 --- a/functions/displaypost.php +++ b/functions/displaypost.php @@ -68,7 +68,7 @@ function comicpress_display_post_tags() { } function comicpress_display_comment_link() { - global $post; + global $post, $wp_query; if ('open' == $post->comment_status && !is_page()) { if (comicpress_check_child_file('partials/commentlink') == false && !is_single()) { $post_comment_link = "
".get_comment_reply_link('  '.__('Comment ','comicpress'), '1 '.__('Comment ','comicpress'), '% '.__('Comments ','comicpress'))."
\r\n";