[wp-trac] [WordPress Trac] #39758: menu-item-home does not get class current-menu-item (not consistent with live page)
WordPress Trac
noreply at wordpress.org
Fri Mar 17 11:59:02 UTC 2017
#39758: menu-item-home does not get class current-menu-item (not consistent with
live page)
---------------------------------------+------------------------------
Reporter: Liddika | Owner: adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7.4
Component: Customize | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-testing needs-patch | Focuses:
---------------------------------------+------------------------------
Changes (by jipmoors):
* keywords: has-patch needs-testing => needs-testing needs-patch
Comment:
The fix is '''breaking functionality''' in the specific situation when the
permalinks are set to the default 'plain' setting.
Testing variables
- p=1 > set as static home page
- p=2 > normal page
- permalink structure: 'plain'
- have a 'Home' menu item
- have the normal page as menu item
When a page other than the Home page is loaded, the Home link is also
receiving the 'current-menu-item' and 'current_page_item' classes.
Whenever the permalink structure is including a '?' the relative root
cannot be determined because the entire permalink match should be taken
into consideration to have a certain request identification.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39758#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list