Use show_ui instead of _show. see #9674

git-svn-id: http://svn.automattic.com/wordpress/trunk@13046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-02-10 17:43:29 +00:00
parent 45aba89157
commit a35ead034f
2 changed files with 4 additions and 4 deletions

View File

@ -1087,7 +1087,7 @@ case 'inline-save':
if ( 'page' == $_POST['post_type'] ) { if ( 'page' == $_POST['post_type'] ) {
$post[] = get_post($_POST['post_ID']); $post[] = get_post($_POST['post_ID']);
page_rows($post); 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']; $mode = $_POST['post_view'];
$post[] = get_post($_POST['post_ID']); $post[] = get_post($_POST['post_ID']);
post_rows($post); post_rows($post);

View File

@ -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' => true) ) ) ) if ( empty($post_type) || !in_array( $post_type, get_post_types( array('show_ui' => true) ) ) )
$post_type = 'post'; $post_type = 'post';
if ( 'post' != $post_type ) { if ( 'post' != $post_type ) {