From 81e3891ed8b9875a42cebd067ad889ea60e5c597 Mon Sep 17 00:00:00 2001 From: Dion Hulse 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: https://develop.svn.wordpress.org/trunk@13215 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) {