From 4c137392c89b952a7af3f0b5d5fe24c809d28305 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 22 Aug 2016 03:11:51 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@38301 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-nav-menus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/js/customize-nav-menus.js b/src/wp-admin/js/customize-nav-menus.js index 10cd62d69e..25495feeb6 100644 --- a/src/wp-admin/js/customize-nav-menus.js +++ b/src/wp-admin/js/customize-nav-menus.js @@ -446,7 +446,7 @@ 'url': itemUrl.val(), 'type': 'custom', 'type_label': api.Menus.data.l10n.custom_label, - 'object': '' + 'object': 'custom' }; this.currentMenuControl.addItemToMenu( menuItem );