WordPress.org

Make WordPress Core

Changeset 11478


Ignore:
Timestamp:
05/28/09 21:26:01 (5 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11450 r11478  
    636636function _tag_row( $tag, $class = '', $taxonomy = 'post_tag' ) { 
    637637        $count = number_format_i18n( $tag->count ); 
    638         $count = ( $count > 0 ) ? "<a href='edit.php?tag=$tag->slug'>$count</a>" : $count; 
     638        $tagsel = ($taxonomy == 'post_tag' ? 'tag' : $taxonomy); 
     639        $count = ( $count > 0 ) ? "<a href='edit.php?$tagsel=$tag->slug'>$count</a>" : $count; 
    639640 
    640641        $name = apply_filters( 'term_name', $tag->name ); 
Note: See TracChangeset for help on using the changeset viewer.