Ticket #18722: 18722.2.diff
| File 18722.2.diff, 975 bytes (added by , 14 years ago) |
|---|
-
wp-admin/includes/class-wp-terms-list-table.php
283 283 } 284 284 285 285 function column_posts( $tag ) { 286 global $taxonomy , $post_type;286 global $taxonomy; 287 287 288 288 $count = number_format_i18n( $tag->count ); 289 289 290 290 $tax = get_taxonomy( $taxonomy ); 291 291 292 if ( ! $tax->public ) 292 $post_type = get_current_screen()->post_type; 293 $ptype_object = get_post_type_object( $post_type ); 294 295 if ( ! $ptype_object->show_ui ) 293 296 return $count; 294 297 295 298 if ( $tax->query_var ) { … … 298 301 $args = array( 'taxonomy' => $tax->name, 'term' => $tag->slug ); 299 302 } 300 303 301 $args['post_type'] = $post_type; 304 if ( 'post' != $post_type ) 305 $args['post_type'] = $post_type; 302 306 303 307 return "<a href='" . esc_url ( add_query_arg( $args, 'edit.php' ) ) . "'>$count</a>"; 304 308 }