[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 17:05:17 UTC 2011


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

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Replying to [comment:1 filosofo]:
 > 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`.

 Thank you for the explanation! I tried looking through the Codex too and
 hence was stumped by this. What I'll do is make a codex contribution once
 I've created a fallback of my own creation.

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


More information about the wp-trac mailing list