Make WordPress Core

Ticket #3924: 3924.diff

File 3924.diff, 603 bytes (added by johnbillion, 19 years ago)

Patch to allow Page Order to take priority over alphabetical listing of pages

  • post-template.php

     
    269269                parse_str($args, $r);
    270270
    271271        $defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'),
    272                 'child_of' => 0, 'exclude' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => '');
     272                'child_of' => 0, 'exclude' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title');
    273273        $r = array_merge($defaults, $r);
    274274
    275275        $output = '';