[wp-trac] [WordPress Trac] #12945: Constrain wp_page_menu()

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 9 19:39:52 UTC 2010


#12945: Constrain wp_page_menu()
--------------------------+-------------------------------------------------
 Reporter:  technosailor  |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Unassigned    
Component:  General       |     Version:  3.0           
 Severity:  normal        |    Keywords:  needs-feedback
--------------------------+-------------------------------------------------
 The wp_page_menu() function is the default callback for wp_nav_menu().
 IOW, when a user is not using the new menu system, it defaults to this
 function. While that is good, any number of pages over, say 10, will make
 a theme puke in many cases.

 As a workaround, I suggest we make a default of wp_page_menu() to exclude
 all pages() except home. It's a stupid idea, I think, but something needs
 to be done to make this manageable so I'm looking for feedback.

 The Pro of taking this approach is that it encourages customization of
 menus via the WP menu system. It also does not lock theme devs into a
 particular approach because this stuff can be overidden via arguments and
 filters.

 The con is that the default callback becomes pretty benign and useless.
 Almost pointless.

 Ideas?

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


More information about the wp-trac mailing list