Skip to content

Commit

Permalink
Taxonomy name may sometimes have characters (e.g. uppercase) that are…
Browse files Browse the repository at this point in the history
… removed by sanitize_title_with_dashes().

Props iNetPeter.
  • Loading branch information
benhuson committed Feb 5, 2016
1 parent d60c398 commit 522af01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taxonomy-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] ) ) {
Expand Down

0 comments on commit 522af01

Please sign in to comment.