From 522af01e2236464aa1819d8b3ae3c820e1bcb0bf Mon Sep 17 00:00:00 2001 From: Ben Huson Date: Fri, 5 Feb 2016 20:46:36 +0000 Subject: [PATCH] Taxonomy name may sometimes have characters (e.g. uppercase) that are removed by sanitize_title_with_dashes(). Props iNetPeter. --- taxonomy-images.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taxonomy-images.php b/taxonomy-images.php index 171f4f9..5b4fac5 100644 --- a/taxonomy-images.php +++ b/taxonomy-images.php @@ -459,7 +459,7 @@ function taxonomy_image_plugin_get_term_info( $tt_id ) { } if ( isset( $data[0]->taxonomy ) ) { - $cache[ $tt_id ]['taxonomy'] = sanitize_title_with_dashes( $data[0]->taxonomy ); + $cache[ $tt_id ]['taxonomy'] = $data[0]->taxonomy; } if ( isset( $cache[ $tt_id ] ) ) {