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:
parent
48f10f0dc1
commit
75e88df3fe
|
@ -469,8 +469,6 @@ function _tag_row( $tag, $level, $taxonomy = 'post_tag' ) {
|
|||
$tagsel = $taxonomy;
|
||||
}
|
||||
|
||||
$count = ( $count > 0 ) ? "<a href='edit.php?$tagsel=$tag->slug&post_type=$post_type'>$count</a>" : $count;
|
||||
|
||||
$pad = str_repeat( '— ', 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&post_type=$post_type'>$count</a></td>";
|
||||
break;
|
||||
default:
|
||||
$out .= "<td $attributes>";
|
||||
|
|
Loading…
Reference in New Issue