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:
parent
57740f3c91
commit
ee44093211
|
@ -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
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue