Duplicate current-menu-item classes in Menu when using multiple taxonomy terms with the same slug
|Reported by:||jchristopher||Owned by:||nacin|
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
Change History (10)
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 3.5
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed