Fix Quick edit for non-page Hierarchical post_types. See #12643

git-svn-id: https://develop.svn.wordpress.org/trunk@13779 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-03-20 03:05:25 +00:00
parent f9660db25a
commit 9b70561913
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
if ( !defined('ABSPATH') )
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>
<tr>
<?php print_column_headers( $current_screen ); ?>

View File

@ -994,7 +994,7 @@ function inline_edit_row( $screen ) {
<label>
<span class="title"><?php _e( 'Parent' ); ?></span>
<?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 )
$dropdown_args['show_option_no_change'] = __('&mdash; No Change &mdash;');
$dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);