mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
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:
parent
45aba89157
commit
a35ead034f
@ -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);
|
||||
|
@ -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);
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user