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'] ) {
$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);

View File

@ -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
<p><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></p>
</div>
<?php
if ( ! is_taxonomy_hierarchical($taxonomy) )
<?php
if ( ! is_taxonomy_hierarchical($taxonomy) )
do_action('add_tag_form_fields', $taxonomy);
do_action($taxonomy . '_add_form_fields', $taxonomy);
?>