Ticket #18722: 18722.use-global.diff
File 18722.use-global.diff, 627 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-terms-list-table.php
283 283 } 284 284 285 285 function column_posts( $tag ) { 286 global $taxonomy ;286 global $taxonomy, $post_type; 287 287 288 288 $count = number_format_i18n( $tag->count ); 289 289 290 290 $tax = get_taxonomy( $taxonomy ); 291 291 292 $post_type = get_current_screen()->post_type;293 292 $ptype_object = get_post_type_object( $post_type ); 294 295 293 if ( ! $ptype_object->show_ui ) 296 294 return $count; 297 295