diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 88a348382c..fbf3e3884e 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -1087,7 +1087,7 @@ case 'inline-save': if ( 'page' == $_POST['post_type'] ) { $post[] = get_post($_POST['post_ID']); page_rows($post); - } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('_show' => true) ) ) ) { + } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('show_ui' => true) ) ) ) { $mode = $_POST['post_view']; $post[] = get_post($_POST['post_ID']); post_rows($post); diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index dc78cff93f..9ee22c65e4 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -21,7 +21,7 @@ $tax = get_taxonomy($taxonomy); $title = $tax->label; -if ( empty($post_type) || !in_array( $post_type, get_post_types( array('_show' => true) ) ) ) +if ( empty($post_type) || !in_array( $post_type, get_post_types( array('show_ui' => true) ) ) ) $post_type = 'post'; if ( 'post' != $post_type ) { @@ -328,8 +328,8 @@ else

-