[Plugin: WP Bannerize] Possible Bug With Filter
-
i’ve been reading the WP-B code for the past hour trying to figure out why a banner widget wasn’t displayed with no Category Filter or in theIndex page
i’ve found the *bug* in wpBannerizeFrontend.php line 88
(is_array( $categoriesID) && !is_category($categoriesID) && !in_category($categoriesID))
should be replace, in my opinion for:
(is_array( $categoriesID) && count( $categoriesID) > 0 && !is_category($categoriesID) && !in_category($categoriesID))
with
is_array( $categoriesID
) we are checking if$categoriesID
is an array but i’ve never checked if the array has childs…$categoriesID
will always be an array due to$args = wp_parse_args($theArgs, $default);
but if we don’t select categories will be an empty array so this will always return true therefor widget is not display unless categorys are selected…i would like to hear from the developers what they think…maybe i’m the one who missunderstood the concept here.
- The topic ‘[Plugin: WP Bannerize] Possible Bug With Filter’ is closed to new replies.