From b78a8aabacc5347db4cf054cb7d8ac396162367c Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 29 Apr 2016 14:11:12 -0700 Subject: [PATCH] Fixed issue where, if no terms have images (i.e. taxonomy_image_plugin_get_associations() returns an empty array) but 'having_images' is false, nothing would be returned --- public-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public-filters.php b/public-filters.php index b02d486..8d9822d 100644 --- a/public-filters.php +++ b/public-filters.php @@ -89,7 +89,7 @@ function taxonomy_images_plugin_get_terms( $default, $args = array() ) { } $assoc = taxonomy_image_plugin_get_associations(); - if ( empty( $assoc ) ) { + if ( ! empty( $args['having_images'] ) && empty( $assoc ) ) { return array(); }