Edge case regarding taxonomy-images-get-terms and having_images => false
-
When using the taxonomy-images-get-terms filter with the optional argument having_images to false, I would expect all terms in a taxonomy to be returned. I’ve run into a case where this doesn’t work. If the plugin is activated but no image association at all has been made yet, then the filter always returns an empty array.
I believe the following lines should be removed from the taxonomy_images_plugin_get_terms function:
if ( empty( $assoc ) ) { return array(); }
Thanks in advance!
- The topic ‘Edge case regarding taxonomy-images-get-terms and having_images => false’ is closed to new replies.