mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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:
parent
8ecf6a8f3f
commit
115014be64
@ -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…
x
Reference in New Issue
Block a user