WordPress.org

Make WordPress Core

Changeset 13779


Ignore:
Timestamp:
03/20/10 03:05:25 (4 years ago)
Author:
dd32
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-post-rows.php

    r12799 r13779  
    1111    die('-1'); 
    1212?> 
    13 <table class="widefat <?php echo $post_type == 'page' ? 'page' : 'post'; ?> fixed" cellspacing="0"> 
     13<table class="widefat <?php echo $post_type_object->hierarchical ? 'page' : 'post'; ?> fixed" cellspacing="0"> 
    1414    <thead> 
    1515    <tr> 
  • trunk/wp-admin/includes/template.php

    r13769 r13779  
    995995            <span class="title"><?php _e( 'Parent' ); ?></span> 
    996996<?php 
    997     $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'); 
     997    $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'); 
    998998    if ( $bulk ) 
    999999        $dropdown_args['show_option_no_change'] =  __('&mdash; No Change &mdash;'); 
Note: See TracChangeset for help on using the changeset viewer.