Sort page_parent dropdown by menu_order. Fixes #8549.

git-svn-id: http://svn.automattic.com/wordpress/trunk@10181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-12-10 21:48:41 +00:00
parent 8c1c46d5f0
commit 129d2296d1
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ function page_attributes_meta_box($post){
?> ?>
<h5><?php _e('Parent') ?></h5> <h5><?php _e('Parent') ?></h5>
<label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label> <label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label>
<?php wp_dropdown_pages(array('exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'))); ?> <?php wp_dropdown_pages(array('exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order')); ?>
<p><?php _e('You can arrange your pages in hierarchies, for example you could have an &#8220;About&#8221; page that has &#8220;Life Story&#8221; and &#8220;My Dog&#8221; pages under it. There are no limits to how deeply nested you can make pages.'); ?></p> <p><?php _e('You can arrange your pages in hierarchies, for example you could have an &#8220;About&#8221; page that has &#8220;Life Story&#8221; and &#8220;My Dog&#8221; pages under it. There are no limits to how deeply nested you can make pages.'); ?></p>
<?php <?php
if ( 0 != count( get_page_templates() ) ) { if ( 0 != count( get_page_templates() ) ) {

View File

@ -1050,7 +1050,7 @@ function inline_edit_row( $type ) {
<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); $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');
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);