WordPress.org

Make WordPress Core

Changeset 13215


Ignore:
Timestamp:
02/19/2010 10:05:13 AM (11 years ago)
Author:
dd32
Message:

Use the public query param instead of show_ui to determine if the Post Type is displayable. Props jfarthing84. See #9674

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tags.php

    r13213 r13215  
    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
Note: See TracChangeset for help on using the changeset viewer.