From 96b5db1227861b739b1c07aa36eb25ad8b57cd8d Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Sat, 23 Jan 2010 04:10:15 -0800 Subject: [PATCH] more ComicBlogPostWidget.inc fixes to check if its in the comic category or not Signed-off-by: Philip M. Hofer (Frumph) --- widgets/ComicBlogPostWidget.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/ComicBlogPostWidget.inc b/widgets/ComicBlogPostWidget.inc index 4f74698..cb9728c 100644 --- a/widgets/ComicBlogPostWidget.inc +++ b/widgets/ComicBlogPostWidget.inc @@ -44,9 +44,9 @@ class ComicPressComicBlogPostWidget extends WP_Widget { UnProtect(); wp_reset_query(); } else { - if (!empty($post->post_content)) { + if (!empty($post->post_content) && in_comic_category()) { echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + $title = empty($instance['title']) ? the_title() : apply_filters('widget_title', $instance['title']); if ( !empty( $title ) ) { echo "
".$title."
\r\n"; } the_content(); echo $after_widget;