WordPress.org

Make WordPress Core

Ticket #9967: ticket-9967.patch

File ticket-9967.patch, 649 bytes (added by gortsleigh, 9 years ago)
  • template.php

     
    635635 */
    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 );
    641642                $qe_data = get_term($tag->term_id, $taxonomy, object, 'edit');