From 043ae81177472e44f83a09b86172db22eb11b707 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 31 Dec 2009 07:50:54 -0800 Subject: [PATCH] Adjusted the if is_page() on some functions to make sure they break;/return right away Signed-off-by: Philip M. Hofer (Frumph) --- functions/displaypost.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/displaypost.php b/functions/displaypost.php index 31354ee..f5bd7aa 100644 --- a/functions/displaypost.php +++ b/functions/displaypost.php @@ -26,7 +26,8 @@ function comicpress_display_post_thumbnail($is_comic = false) { function comicpress_display_author_gravatar($is_comic = false) { global $post, $wp_query, $comicpress_options; - if (((!$is_comic && $comicpress_options['enable_post_author_gravatar']) || ($is_comic && $comicpress_options['enable_comic_post_author_gravatar'])) && !is_page()) { + if (is_page()) return; + if (((!$is_comic && $comicpress_options['enable_post_author_gravatar']) || ($is_comic && $comicpress_options['enable_comic_post_author_gravatar']))) { $author_get_gravatar = str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),comicpress_get_avatar(get_the_author_meta('email'), 64)); $author_gravatar = "
".$author_get_gravatar."
\r\n"; echo apply_filters('comicpress_display_author_gravatar', $author_gravatar); @@ -35,7 +36,8 @@ function comicpress_display_author_gravatar($is_comic = false) { function comicpress_display_post_calendar($is_comic = false) { global $post, $wp_query, $comicpress_options; - if ((!$is_comic && $comicpress_options['enable_post_calendar']) || ($is_comic && $comicpress_options['enable_comic_post_calendar']) && !is_page()) { + if (is_page()) return; + if ((!$is_comic && $comicpress_options['enable_post_calendar']) || ($is_comic && $comicpress_options['enable_comic_post_calendar'])) { $post_calendar = "
".get_the_time('M')."".get_the_time('d')."
\r\n"; echo apply_filters('comicpress_display_post_calendar',$post_calendar); }