[wp-trac] [WordPress Trac] #21369: Duplicate current-menu-item classes in Menu when using multiple taxonomy terms with the same slug
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 25 02:31:10 UTC 2012
#21369: Duplicate current-menu-item classes in Menu when using multiple taxonomy
terms with the same slug
--------------------------+-----------------------------
Reporter: jchristopher | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.4.1
Severity: normal | Keywords:
--------------------------+-----------------------------
If Taxonomy-based Menu items have the same slug (regardless of Taxonomy
name) classes of {{{current-menu-item}}}, {{{current-menu-ancestor}}},
etc. will be added to all Taxonomy term Menu items that have the slug of
the object currently being viewed. This is not an issue with Page-based
Menu items.
Test case: if you have a Category named "Test" with a slug {{{test}}} and
also have a Tag named "Test" with a slug {{{test}}} and create a Menu
using those two terms, viewing either archive page will result in the menu
having two items with a class of {{{current-menu-item}}} which results in
unwanted styling. This is not an issue if a Page Menu item has a slug of
{{{test}}}.
Screenshot of Menu setup: [http://d.pr/i/WtJg/5vBu91hX]
Screenshot of duplicate class issue: [http://d.pr/i/M4VH/4nbAdJZY]
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21369>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list