Require show_ui rather than public for a taxonomy's parent post type. see #19080.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c5e45abda
commit
4c9afe489a
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue