From fa9cd83410e4ed56d2be3e24d8741f6a52ed0b75 Mon Sep 17 00:00:00 2001 From: dd32 Date: Fri, 19 Feb 2010 10:05:13 +0000 Subject: [PATCH] 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 --- wp-admin/edit-tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index b8b9ed371e..90b29ac7e6 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -21,7 +21,7 @@ $tax = get_taxonomy($taxonomy); $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'; if ( 'post' != $post_type ) {