WordPress.org

Make WordPress Core

Changeset 10181


Ignore:
Timestamp:
12/10/08 21:48:41 (5 years ago)
Author:
westi
Message:

Sort page_parent dropdown by menu_order. Fixes #8549.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r10129 r10181  
    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)'))); ?> 
     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')); ?> 
    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

    r10150 r10181  
    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); 
     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'); 
    10541054    if ( $bulk ) 
    10551055        $dropdown_args['show_option_no_change'] =  __('- No Change -'); 
Note: See TracChangeset for help on using the changeset viewer.