[wp-trac] [WordPress Trac] #31656: Add menu ID argument to `wp_page_menu()` so that fallback menus have same attributes as `wp_nav_menu()`

WordPress Trac noreply at wordpress.org
Mon Mar 16 18:23:52 UTC 2015


#31656: Add menu ID argument to `wp_page_menu()` so that fallback menus have same
attributes as `wp_nav_menu()`
--------------------------+-----------------------------
 Reporter:  lancewillett  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 See use case in Twenty Fourteen menu behavior:
 https://core.trac.wordpress.org/ticket/31527#comment:25

 When no custom menu is set, the menu doesn't output the HTML ID attribute
 on the div element that wraps the pages menu.

 This means things like accessibility attributes (like ARIA targets) don't
 work because the ID is missing from the HTML output.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31656>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list