[wp-trac] [WordPress Trac] #10266: wp_page_menu sort_column value should be "menu_order, post_title"

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 25 03:55:20 GMT 2009


#10266: wp_page_menu sort_column value should be "menu_order, post_title"
-------------------------+--------------------------------------------------
 Reporter:  nathanrice   |       Owner:                  
     Type:  enhancement  |      Status:  new             
 Priority:  normal       |   Milestone:  2.8.1           
Component:  General      |     Version:  2.8             
 Severity:  normal       |    Keywords:  has-patch tested
-------------------------+--------------------------------------------------
 The default argument array for wp_page_menu will ignore the menu_order
 sorting method, in favor of sorting by post_title. This seems backwards to
 me, since many theme authors don't know that a default wp_page_menu call
 will ignore menu_order by default, rendering the ordering field useless to
 the user.

 I propose making the default value for sort_column => 'menu_order,
 post_title" for the sake of users.

 I've attached a diff with the change made.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10266>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list