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:
parent
a8a94eef46
commit
3615389411
|
@ -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"> </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"> </span> '.__('Comment ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress'))."</div>\r\n";
|
||||||
|
|
Loading…
Reference in New Issue