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
This commit is contained in:
Andrew Nacin 2011-10-29 05:30:57 +00:00
parent 8ecf6a8f3f
commit 115014be64
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$tax = get_taxonomy( $taxonomy ); $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'; $post_type = 'post';
parent::__construct( array( parent::__construct( array(