[wp-trac] [WordPress Trac] #16679: wp_nav_menu treats menu_class differently for fallback

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 26 16:48:12 UTC 2011


#16679: wp_nav_menu treats menu_class differently for fallback
--------------------------+-----------------------------
 Reporter:  Nonchalant    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Menus         |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+-----------------------------
Changes (by filosofo):

 * keywords:  needs-testing => close
 * milestone:  Awaiting Review => Future Release


Comment:

 The `<div>` element is being generated by your fallback, in this case
 `wp_page_menu`.  You can expect the markup to vary from non-fallback to
 the extent that the fallback differs, and `wp_page_menu` does not have an
 argument to remove the wrapping `<div>` element.

 Some possible ways to address this:
  * Use a fallback of your own creation that more closely resembles typical
 menu markup.
  * Open a ticket to make `wp_page_menu` to print markup more like standard
 `wp_nav_menu`.

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


More information about the wp-trac mailing list