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: http://svn.automattic.com/wordpress/trunk@13282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-02-21 11:02:14 +00:00
parent 48f10f0dc1
commit 75e88df3fe
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; $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) ); $pad = str_repeat( '&#8212; ', max(0, $level) );
$name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
$qe_data = get_term($tag->term_id, $taxonomy, object, 'edit'); $qe_data = get_term($tag->term_id, $taxonomy, object, 'edit');
@ -534,7 +532,7 @@ function _tag_row( $tag, $level, $taxonomy = 'post_tag' ) {
break; break;
case 'posts': case 'posts':
$attributes = 'class="posts column-posts num"' . $style; $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; break;
default: default:
$out .= "<td $attributes>"; $out .= "<td $attributes>";