From b7315d9806fab1a6afb64cbfb15d23c450b73164 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Sun, 10 Jan 2010 16:00:16 -0800 Subject: [PATCH] Filters for rascal and href were not being disabled on the is_search and is_archive pages, fixed by doing a return of $output inside the function. The actual lines for adding the filter wouldn't accept the if (is_archive() or is_search()) for some reason, always returned false even with a global $wp_query, should have john investigate this further. Signed-off-by: Philip M. Hofer (Frumph) --- functions/displaycomic.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/displaycomic.php b/functions/displaycomic.php index a3fc3af..3ffedee 100644 --- a/functions/displaycomic.php +++ b/functions/displaycomic.php @@ -87,7 +87,8 @@ function comicpress_display_comic() { } function comicpress_comic_clicks_next($output) { - global $post, $comicpress_options; + global $post, $wp_query, $comicpress_options; + if (is_search() || is_archive()) return $output; $next_comic = get_next_comic_permalink(); $output = "{$output}\r\n"; return $output; @@ -95,6 +96,7 @@ function comicpress_comic_clicks_next($output) { function comicpress_rascal_says($output) { global $post, $wp_query, $comicpress_options; + if (is_search() || is_archive()) return $output; $hovertext = get_post_meta( get_the_ID(), "hovertext", true ); if (!empty($hovertext)) { $output = preg_replace('#title="([^*]*)"#', '', $output);