WordPress.org

Make WordPress Core

Changeset 38301


Ignore:
Timestamp:
08/22/2016 03:11:51 AM (3 years ago)
Author:
westonruter
Message:

Customize: Ensure a newly-added custom link nav menu item has the appropriate CSS class names.

For nav menu items of the custom type, their object should also be set to custom, so that the menu-item-custom class name will be added.

Props vishalkakadiya.
Fixes #37575.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r38300 r38301  
    447447                'type': 'custom',
    448448                'type_label': api.Menus.data.l10n.custom_label,
    449                 'object': ''
     449                'object': 'custom'
    450450            };
    451451
Note: See TracChangeset for help on using the changeset viewer.