Properly handle display of Order, Template, and Parent page attributes in Quick/Bulk Edit. props duck_, fixes #18352.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5dab7294bd
commit
cdb9e49b8c
|
@ -839,10 +839,11 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
<?php
|
||||
if ( post_type_supports( $screen->post_type, 'author' ) && $bulk )
|
||||
echo $authors_dropdown;
|
||||
|
||||
if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) :
|
||||
|
||||
if ( $post_type_object->hierarchical ) :
|
||||
?>
|
||||
|
||||
<?php if ( $post_type_object->hierarchical ) : ?>
|
||||
|
||||
<label>
|
||||
<span class="title"><?php _e( 'Parent' ); ?></span>
|
||||
<?php
|
||||
|
@ -854,7 +855,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
?>
|
||||
</label>
|
||||
|
||||
<?php if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) :
|
||||
<?php
|
||||
endif; // hierarchical
|
||||
|
||||
if ( !$bulk ) : ?>
|
||||
|
||||
<label>
|
||||
|
@ -862,7 +865,10 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
<span class="input-text-wrap"><input type="text" name="menu_order" class="inline-edit-menu-order-input" value="<?php echo $post->menu_order ?>" /></span>
|
||||
</label>
|
||||
|
||||
<?php endif; // !$bulk ?>
|
||||
<?php endif; // !$bulk
|
||||
|
||||
if ( 'page' == $screen->post_type ) :
|
||||
?>
|
||||
|
||||
<label>
|
||||
<span class="title"><?php _e( 'Template' ); ?></span>
|
||||
|
@ -876,8 +882,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
</label>
|
||||
|
||||
<?php
|
||||
endif; // post_type_supports page-attributes
|
||||
endif; // $post_type_object->hierarchical ?>
|
||||
endif; // page post_type
|
||||
endif; // page-attributes
|
||||
?>
|
||||
|
||||
<?php if ( count( $flat_taxonomies ) && !$bulk ) : ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue