Customizer: Prevent dragging menu items above the main heading.
Improve targeting for the `sortableItems`, resolving an issue where the first `<li>` in the control became a sortable target, allowing the user to drag a single top level menu outside the intended sortable area. props adamsilverstein. fixes #32738. #wceu Built from https://develop.svn.wordpress.org/trunk@32955 git-svn-id: http://core.svn.wordpress.org/trunk@32926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d99f9d3a22
commit
a6b7a691be
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
wpNavMenu.originalInit = wpNavMenu.init;
|
||||
wpNavMenu.options.menuItemDepthPerLevel = 20;
|
||||
wpNavMenu.options.sortableItems = '.customize-control-nav_menu_item';
|
||||
wpNavMenu.options.sortableItems = '> .customize-control-nav_menu_item';
|
||||
wpNavMenu.init = function() {
|
||||
this.jQueryExtensions();
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32954';
|
||||
$wp_version = '4.3-alpha-32955';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue