WordPress.org

Make WordPress Core

Ticket #18722: 18722.use-global.diff

File 18722.use-global.diff, 627 bytes (added by duck_, 7 years ago)
  • wp-admin/includes/class-wp-terms-list-table.php

     
    283283        }
    284284
    285285        function column_posts( $tag ) {
    286                 global $taxonomy;
     286                global $taxonomy, $post_type;
    287287
    288288                $count = number_format_i18n( $tag->count );
    289289
    290290                $tax = get_taxonomy( $taxonomy );
    291291
    292                 $post_type = get_current_screen()->post_type;
    293292                $ptype_object = get_post_type_object( $post_type );
    294 
    295293                if ( ! $ptype_object->show_ui )
    296294                        return $count;
    297295