Make WordPress Core

Changeset 5049


Ignore:
Timestamp:
03/16/2007 08:19:10 AM (17 years ago)
Author:
markjaquith
Message:

have wp_list_pages() default to menu_order sorting and only use post_title sorting as a secondary sort. props johnbillion. fixes #3924 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r5019 r5049  
    282282
    283283    $defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'),
    284         'child_of' => 0, 'exclude' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => '');
     284        'child_of' => 0, 'exclude' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title');
    285285    $r = array_merge($defaults, $r);
    286286
Note: See TracChangeset for help on using the changeset viewer.