Menus: Use strict comparison for the condition added in [38612].
See #37846. Built from https://develop.svn.wordpress.org/trunk@38613 git-svn-id: http://core.svn.wordpress.org/trunk@38556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a0ce261a24
commit
15df6d24eb
|
@ -84,10 +84,13 @@ var wpNavMenu;
|
|||
var t = $(this),
|
||||
depth = t.menuItemDepth(),
|
||||
newDepth = depth + change;
|
||||
|
||||
t.removeClass( 'menu-item-depth-'+ depth )
|
||||
.addClass( 'menu-item-depth-'+ ( newDepth ) );
|
||||
if ( newDepth == 0 )
|
||||
|
||||
if ( 0 === newDepth ) {
|
||||
t.find( '.is-submenu' ).hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
childMenuItems : function() {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38612';
|
||||
$wp_version = '4.7-alpha-38613';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue