Ticket #15573: 15573.2.diff
File 15573.2.diff, 897 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-terms-list-table.php
275 275 $count = number_format_i18n( $tag->count ); 276 276 277 277 $tax = get_taxonomy( $taxonomy ); 278 279 if ( !$tax->public ) 280 return $count; 281 278 282 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 ); 280 286 } 281 287 282 return $count; 288 $args['post_type'] = $post_type; 289 290 return "<a href='" . add_query_arg( $args, 'edit.php' ) . "'>$count</a>"; 283 291 } 284 292 285 293 function column_links( $tag ) {