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
This commit is contained in:
parent
9760997180
commit
81e3891ed8
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user