| 1 | Index: wp-admin/includes/class-wp-terms-list-table.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/class-wp-terms-list-table.php (revision 19414) |
|---|
| 4 | +++ wp-admin/includes/class-wp-terms-list-table.php (working copy) |
|---|
| 5 | @@ -283,15 +283,13 @@ |
|---|
| 6 | } |
|---|
| 7 | |
|---|
| 8 | function column_posts( $tag ) { |
|---|
| 9 | - global $taxonomy; |
|---|
| 10 | + global $taxonomy, $post_type; |
|---|
| 11 | |
|---|
| 12 | $count = number_format_i18n( $tag->count ); |
|---|
| 13 | |
|---|
| 14 | $tax = get_taxonomy( $taxonomy ); |
|---|
| 15 | |
|---|
| 16 | - $post_type = get_current_screen()->post_type; |
|---|
| 17 | $ptype_object = get_post_type_object( $post_type ); |
|---|
| 18 | - |
|---|
| 19 | if ( ! $ptype_object->show_ui ) |
|---|
| 20 | return $count; |
|---|
| 21 | |
|---|