[wp-trac] [WordPress Trac] #22364: Add Theme Location Arg to Custom Menu Widget
WordPress Trac
noreply at wordpress.org
Fri Feb 21 17:16:15 UTC 2014
#22364: Add Theme Location Arg to Custom Menu Widget
-------------------------+------------------------------
Reporter: wpsmith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
-------------------------+------------------------------
Changes (by ocean90):
* keywords: => has-patch
* focuses: => template
* type: defect (bug) => enhancement
Comment:
Patch looks interesting. By default `theme_location` should be a value
which is registered via `register_nav_menu()`.
In this case it would work because `wp_nav_menu()` uses `theme_location`
only if $menu isn't set.
As an alternative we could add a context arg to `wp_nav_menu()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22364#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list