diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php
index c21e7abd6e..84e6604bf1 100644
--- a/wp-admin/includes/class-wp-terms-list-table.php
+++ b/wp-admin/includes/class-wp-terms-list-table.php
@@ -274,17 +274,12 @@ class WP_Terms_List_Table extends WP_List_Table {
$count = number_format_i18n( $tag->count );
- if ( 'post_tag' == $taxonomy ) {
- $tagsel = 'tag';
- } elseif ( 'category' == $taxonomy ) {
- $tagsel = 'category_name';
- } elseif ( ! empty( $tax->query_var ) ) {
- $tagsel = $tax->query_var;
- } else {
- $tagsel = $taxonomy;
+ $tax = get_taxonomy( $taxonomy );
+ if ( $tax->query_var ) {
+ return " $post_type ), 'edit.php' ) . "'>$count";
}
- return "$count";
+ return $count;
}
function column_links( $tag ) {