[wp-trac] [WordPress Trac] #13976: wp_nav_menu() uses IDs for menu-items preventing re-use on the same page
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 18 14:25:31 UTC 2010
#13976: wp_nav_menu() uses IDs for menu-items preventing re-use on the same page
--------------------------+-------------------------------------------------
Reporter: foolsrun | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0.1
Component: Menus | Version: 3.0
Severity: normal | Keywords: menu id css wp_nav_menu has-patch
--------------------------+-------------------------------------------------
Changes (by filosofo):
* keywords: menu, id, css, wp_nav_menu => menu id css wp_nav_menu has-
patch
Comment:
I've seen this complained about elsewhere, so we could probably use a
filter on the id attribute (patch does that).
Otherwise, I don't know that we should try to ensure unique IDs in core:
it's simple enough to get around the problem (make a new menu) that people
using the same menu on twice on one page can add a couple lines to their
theme's `functions.php` file if they really want to do that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13976#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list