From e74f2271050b09364aebd40ff247f75ffa2ced9d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 28 May 2009 21:26:01 +0000 Subject: [PATCH] Generate correct links for custom taxonomies. Props gortsleigh. fixes #9967 git-svn-id: https://develop.svn.wordpress.org/trunk@11478 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index e8f298d3dc..b4dc25314d 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -635,7 +635,8 @@ function wp_link_category_checklist( $link_id = 0 ) { */ function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) { $count = number_format_i18n( $tag->count ); - $count = ( $count > 0 ) ? "$count" : $count; + $tagsel = ($taxonomy == 'post_tag' ? 'tag' : $taxonomy); + $count = ( $count > 0 ) ? "$count" : $count; $name = apply_filters( 'term_name', $tag->name ); $qe_data = get_term($tag->term_id, $taxonomy, object, 'edit');