Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37575, comment 1


Ignore:
Timestamp:
08/04/2016 08:55:09 PM (7 years ago)
Author:
vishalkakadiya
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37575, comment 1

    initial v1  
    44where we add class `'menu-item-' + settingValue.object`, But the thing is that when custom menu link add to menu `_submitLink()` is called which is internally call `submitLink()`
    55
    6 So in `submitLink()` there are one `menuItem` variable which `'object': ''`, but at that place we need to replace `'object': 'custom'` sting in place of null string.
     6Then in `submitLink()` there are one `menuItem` variable which `'object': ''`, but at that place we need to replace `'object': 'custom'` sting in place of null string.
    77
    88So that in `'menu-item-' + settingValue.object` which will generate class name as `menu-item-custom`