[wp-trac] [WordPress Trac] #18842: wp_nav_menu confuses new developers when it falls through to page listing

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 2 10:54:12 UTC 2011


#18842: wp_nav_menu confuses new developers when it falls through to page listing
--------------------------+-----------------------------
 Reporter:  dd32          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 It appears that when wp_nav_menu() falls through to a page listing, many
 menu-specific args are not passed to the page listing, which ultimately
 confuses new developers.

 I seem to answer this at least weekly in #wordpress

 One example is the 'container_class' arg, if it falls through to the
 fallback_cb, the container_class is not applied.

 Ideally, template-related arguements should be passed to the fallback (And
 with pages as the default callback, it should handle these) or
 wp_nav_menu() should output any extra wrapping divs if appropriate.

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


More information about the wp-trac mailing list