Fix Quick edit for non-page Hierarchical post_types. See #12643
git-svn-id: http://svn.automattic.com/wordpress/trunk@13779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5d965f2c1c
commit
68562ccc93
|
@ -10,7 +10,7 @@
|
||||||
if ( !defined('ABSPATH') )
|
if ( !defined('ABSPATH') )
|
||||||
die('-1');
|
die('-1');
|
||||||
?>
|
?>
|
||||||
<table class="widefat <?php echo $post_type == 'page' ? 'page' : 'post'; ?> fixed" cellspacing="0">
|
<table class="widefat <?php echo $post_type_object->hierarchical ? 'page' : 'post'; ?> fixed" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<?php print_column_headers( $current_screen ); ?>
|
<?php print_column_headers( $current_screen ); ?>
|
||||||
|
|
|
@ -994,7 +994,7 @@ function inline_edit_row( $screen ) {
|
||||||
<label>
|
<label>
|
||||||
<span class="title"><?php _e( 'Parent' ); ?></span>
|
<span class="title"><?php _e( 'Parent' ); ?></span>
|
||||||
<?php
|
<?php
|
||||||
$dropdown_args = array('selected' => $post->post_parent, 'name' => 'post_parent', 'show_option_none' => __('Main Page (no parent)'), 'option_none_value' => 0, 'sort_column'=> 'menu_order, post_title');
|
$dropdown_args = array('post_type' => $post_type_object->name, 'selected' => $post->post_parent, 'name' => 'post_parent', 'show_option_none' => __('Main Page (no parent)'), 'option_none_value' => 0, 'sort_column'=> 'menu_order, post_title');
|
||||||
if ( $bulk )
|
if ( $bulk )
|
||||||
$dropdown_args['show_option_no_change'] = __('— No Change —');
|
$dropdown_args['show_option_no_change'] = __('— No Change —');
|
||||||
$dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
|
$dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
|
||||||
|
|
Loading…
Reference in New Issue