Link to Posts page on Taxonomy Administration page even for Count == 0. Count does not include Drafts/Scheduled posts, only "published" posts. Props miqrogroove. Fixes #11340

git-svn-id: https://develop.svn.wordpress.org/trunk@13282 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-02-21 11:02:14 +00:00
parent 4b1eea2325
commit 3e2114eb0f
1 changed files with 1 additions and 3 deletions

View File

@ -469,8 +469,6 @@ function _tag_row( $tag, $level, $taxonomy = 'post_tag' ) {
$tagsel = $taxonomy;
}
$count = ( $count > 0 ) ? "<a href='edit.php?$tagsel=$tag->slug&amp;post_type=$post_type'>$count</a>" : $count;
$pad = str_repeat( '&#8212; ', max(0, $level) );
$name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
$qe_data = get_term($tag->term_id, $taxonomy, object, 'edit');
@ -534,7 +532,7 @@ function _tag_row( $tag, $level, $taxonomy = 'post_tag' ) {
break;
case 'posts':
$attributes = 'class="posts column-posts num"' . $style;
$out .= "<td $attributes>$count</td>";
$out .= "<td $attributes><a href='edit.php?$tagsel=$tag->slug&amp;post_type=$post_type'>$count</a></td>";
break;
default:
$out .= "<td $attributes>";