Make WordPress Core

Ticket #15573: 15573.2.diff

File 15573.2.diff, 897 bytes (added by scribu, 14 years ago)

Also check public flag

  • wp-admin/includes/class-wp-terms-list-table.php

     
    275275                $count = number_format_i18n( $tag->count );
    276276
    277277                $tax = get_taxonomy( $taxonomy );
     278
     279                if ( !$tax->public )
     280                        return $count;
     281
    278282                if ( $tax->query_var ) {
    279                         return "<a href='" . add_query_arg( array( $tax->query_var => $tag->slug, 'post_type' => $post_type ), 'edit.php' ) . "'>$count</a>";           
     283                        $args = array( $tax->query_var => $tag->slug );
     284                } else {
     285                        $args = array( 'taxonomy' => $tax->name, 'term' => $tag->slug );
    280286                }
    281287
    282                 return $count;
     288                $args['post_type'] = $post_type;
     289
     290                return "<a href='" . add_query_arg( $args, 'edit.php' ) . "'>$count</a>";               
    283291        }
    284292
    285293        function column_links( $tag ) {