mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Sort by 'menu_order, post_title'. see #8549
git-svn-id: http://svn.automattic.com/wordpress/trunk@10182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
129d2296d1
commit
c08f309815
@ -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)'), 'sort_column'=> 'menu_order')); ?>
|
||||
<?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, post_title')); ?>
|
||||
<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, 'sort_column'=> 'menu_order');
|
||||
$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');
|
||||
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
Block a user