Make WordPress Core

Ticket #9674: changes.diff

File changes.diff, 1.0 KB (added by jfarthing84, 15 years ago)
  • edit-tags.php

     
    2121
    2222$title = $tax->label;
    2323
    24 if ( empty($post_type) || !in_array( $post_type, get_post_types( array('show_ui' => true) ) ) )
     24if ( empty($post_type) || !in_array( $post_type, get_post_types( array('public' => true) ) ) )
    2525        $post_type = 'post';
    2626
    2727if ( 'post' != $post_type ) {
  • includes/template.php

     
    36913691        $columns = array('dashboard' => 4, 'post' => 2, 'page' => 2, 'link' => 2);
    36923692
    36933693        // Add custom post types
    3694         foreach ( get_post_types( array('show_ui' => true) ) as $post_type )
     3694        foreach ( get_post_types( array('public' => true) ) as $post_type )
    36953695                $columns[$post_type] = 2;
    36963696
    36973697        $columns = apply_filters('screen_layout_columns', $columns, $screen->id, $screen);