Make WordPress Core

Changeset 10182


Ignore:
Timestamp:
12/10/2008 10:22:30 PM (17 years ago)
Author:
ryan
Message:

Sort by 'menu_order, post_title'. see #8549

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r10181 r10182  
    271271<h5><?php _e('Parent') ?></h5>
    272272<label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label>
    273 <?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')); ?>
     273<?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')); ?>
    274274<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>
    275275<?php
  • trunk/wp-admin/includes/template.php

    r10181 r10182  
    10511051            <span class="title"><?php _e( 'Parent' ); ?></span>
    10521052<?php
    1053     $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');
     1053    $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');
    10541054    if ( $bulk )
    10551055        $dropdown_args['show_option_no_change'] =  __('- No Change -');
Note: See TracChangeset for help on using the changeset viewer.