From 115014be642cb61d7e65248ce02ef9e186de6217 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 29 Oct 2011 05:30:57 +0000 Subject: [PATCH] Require show_ui rather than public for a taxonomy's parent post type. see #19080. git-svn-id: https://develop.svn.wordpress.org/trunk@19089 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-terms-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php index 85d563c98e..126a7aa7f7 100644 --- a/wp-admin/includes/class-wp-terms-list-table.php +++ b/wp-admin/includes/class-wp-terms-list-table.php @@ -24,7 +24,7 @@ class WP_Terms_List_Table extends WP_List_Table { $tax = get_taxonomy( $taxonomy ); - if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'public' => true ) ) ) ) + if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'show_ui' => true ) ) ) ) $post_type = 'post'; parent::__construct( array(