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.

Built from https://develop.svn.wordpress.org/trunk@38301


git-svn-id: http://core.svn.wordpress.org/trunk@38242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2016-08-22 03:12:32 +00:00
parent 57740f3c91
commit ee44093211
3 changed files with 3 additions and 3 deletions

View File

@ -446,7 +446,7 @@
'url': itemUrl.val(),
'type': 'custom',
'type_label': api.Menus.data.l10n.custom_label,
'object': ''
'object': 'custom'
};
this.currentMenuControl.addItemToMenu( menuItem );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38300';
$wp_version = '4.7-alpha-38301';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.