fix issue with trying to call is_active on objects w/o method
This commit is contained in:
parent
657080c990
commit
3e84f9d36b
|
@ -29,6 +29,7 @@ function __comicpress_widgets_init() {
|
|||
if ($type != 'wp_inactive_widgets') {
|
||||
foreach ($widgets as $widget_id) {
|
||||
foreach ($available_widgets as $key => $widget) {
|
||||
if (method_exists($widget, 'is_active')) {
|
||||
if (strpos(strtolower($widget_id), $key) === 0) {
|
||||
$widget->is_active();
|
||||
}
|
||||
|
@ -37,6 +38,7 @@ function __comicpress_widgets_init() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function __comicpress_init() {
|
||||
global $comicpress_options, $__comicpress_handlable_classes;
|
||||
|
|
Loading…
Reference in New Issue