WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#13979 new enhancement

Add a new arg for custom ID attributes with wp_page_menu()

Reported by: iandstewart Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords: has-patch
Focuses: template Cc:

Description

The attached patch adds a new arg to wp_page_menu() for setting custom ID attributes (right now you can only set a Class--incorrectly noted as the ID in the docs).

Since wp_page_menu() is the default fallback for wp_nav_menu() this would be potentially super-helpful for marrying up with wp_nav_menu()'s container_ID.

Attachments (1)

wp-page-menu-id-arg.diff (1.8 KB) - added by iandstewart 4 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 nacin4 years ago

Related #13998

comment:2 Utkarsh4 years ago

  • Cc admin@… added

comment:3 nacin4 years ago

  • Milestone changed from Awaiting Review to 3.1

comment:4 markjaquith4 years ago

  • Milestone changed from 3.1 to Future Release

comment:5 nacin5 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added
Note: See TracTickets for help on using tickets.