From 3e84f9d36bad0eb36805c178bb04f8353d366b5d Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 20 Dec 2009 22:55:18 -0500 Subject: [PATCH] fix issue with trying to call is_active on objects w/o method --- functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 8becc55..81874ed 100644 --- a/functions.php +++ b/functions.php @@ -29,8 +29,10 @@ function __comicpress_widgets_init() { if ($type != 'wp_inactive_widgets') { foreach ($widgets as $widget_id) { foreach ($available_widgets as $key => $widget) { - if (strpos(strtolower($widget_id), $key) === 0) { - $widget->is_active(); + if (method_exists($widget, 'is_active')) { + if (strpos(strtolower($widget_id), $key) === 0) { + $widget->is_active(); + } } } } @@ -191,7 +193,7 @@ function comicpress_load_options() { 'enable_comicpress_debug' => true, 'enable_full_post_check' => false, - + 'enable_blogroll_off_links' => false ) as $field => $value) {