[wp-trac] [WordPress Trac] #11817: Better Menu Management

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 8 06:18:07 UTC 2010


#11817: Better Menu Management
----------------------------+-----------------------------------------------
 Reporter:  scribu          |       Owner:  scribu  
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.0     
Component:  General         |     Version:          
 Severity:  normal          |    Keywords:          
----------------------------+-----------------------------------------------

Comment(by ryan):

 The problem with menu_order is that it has no context. Is it for
 wp_list_pages(), is it for wp_page_menu(), is it for edit-pages.php? It
 also burdens every page with a piece of info needed for only a subset.  It
 is also useful only for internal WP pages, whereas what we want will allow
 other elements as well.  I'm thinking menu_order would remain for
 wp_list_pages and the new function would store items in an array.  The
 navigation menu usually has a much smaller subset of pages than the full
 pages list.  For most sites it will have only a handful of items (sites
 that have dropdowns with lots of children could have a lot though).
 Sticking those in an array in the options table would be fast and easy.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11817#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list