[wp-trac] [WordPress Trac] #37575: Customizer Menus: css selector missing when adding custom link
WordPress Trac
noreply at wordpress.org
Thu Aug 4 18:40:41 UTC 2016
#37575: Customizer Menus: css selector missing when adding custom link
--------------------------+-----------------------------
Reporter: virgodesign | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.5.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
While in customizer, if you are populating a navigation menu and you add a
custom link to the menu, a new item is created and added with an initial
wrong css selector.
Usually, when a user add a new item to a menu, the added item has the
following css selector:
{{{ menu-item-{post_type} }}}
But when you add a custom link, the added item has the selector {{{ menu-
item-}}} instead of {{{ menu-item-custom}}}.
'''This issue happens only during the creation of a custom link.''' All
Previously created custom link items (loaded during customizer
initialization) has the correct css selector: menu-item-custom.
This could appear as a not so important problem, but could brings to
strange behaviour and style inconsistency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37575>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list