Use the public query param instead of show_ui to determine if the Post Type is displayable. Props jfarthing84. See #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@13215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ed7cba3e7
commit
fa9cd83410
|
@ -21,7 +21,7 @@ $tax = get_taxonomy($taxonomy);
|
||||||
|
|
||||||
$title = $tax->label;
|
$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';
|
$post_type = 'post';
|
||||||
|
|
||||||
if ( 'post' != $post_type ) {
|
if ( 'post' != $post_type ) {
|
||||||
|
|
Loading…
Reference in New Issue