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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-02-19 10:05:13 +00:00
parent 9ed7cba3e7
commit fa9cd83410
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ $tax = get_taxonomy($taxonomy);
$title = $tax->label; $title = $tax->label;
if ( empty($post_type) || !in_array( $post_type, get_post_types( array('show_ui' => true) ) ) ) if ( empty($post_type) || !in_array( $post_type, get_post_types( array('public' => true) ) ) )
$post_type = 'post'; $post_type = 'post';
if ( 'post' != $post_type ) { if ( 'post' != $post_type ) {