diff --git a/illustrated-recent-posts-widget.php b/illustrated-recent-posts-widget.php index 9c4fff5..5fd7b2d 100644 --- a/illustrated-recent-posts-widget.php +++ b/illustrated-recent-posts-widget.php @@ -109,7 +109,7 @@ class Illustrated_Recent_Posts_Widget extends WP_Widget { $option_base ='term_id); }; + $is_a_cat = function($ic) use ($c) { return ($ic == $c->term_id); }; return (count(array_filter($cats_instance, $is_a_cat)) > 0); };