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:
parent
8c1c46d5f0
commit
129d2296d1
|
@ -270,7 +270,7 @@ function page_attributes_meta_box($post){
|
|||
?>
|
||||
<h5><?php _e('Parent') ?></h5>
|
||||
<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 “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how deeply nested you can make pages.'); ?></p>
|
||||
<?php
|
||||
if ( 0 != count( get_page_templates() ) ) {
|
||||
|
|
|
@ -1050,7 +1050,7 @@ function inline_edit_row( $type ) {
|
|||
<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);
|
||||
$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 )
|
||||
$dropdown_args['show_option_no_change'] = __('- No Change -');
|
||||
$dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
|
||||
|
|
Loading…
Reference in New Issue