Generate correct links for custom taxonomies. Props gortsleigh. fixes #9967

git-svn-id: http://svn.automattic.com/wordpress/trunk@11478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-28 21:26:01 +00:00
parent 00f547cbe0
commit 833fd18478
1 changed files with 2 additions and 1 deletions

View File

@ -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 ) ? "<a href='edit.php?tag=$tag->slug'>$count</a>" : $count;
$tagsel = ($taxonomy == 'post_tag' ? 'tag' : $taxonomy);
$count = ( $count > 0 ) ? "<a href='edit.php?$tagsel=$tag->slug'>$count</a>" : $count;
$name = apply_filters( 'term_name', $tag->name );
$qe_data = get_term($tag->term_id, $taxonomy, object, 'edit');