Revert [25622]. fixes #25445. see #25122.

git-svn-id: https://develop.svn.wordpress.org/trunk@25687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2013-10-03 09:11:45 +00:00
parent 20686308d3
commit 4f7760db6f
1 changed files with 1 additions and 5 deletions

View File

@ -178,11 +178,7 @@ var wpNavMenu;
var t = $(this),
listItemDBIDMatch = re.exec( t.attr('name') ),
listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10);
// Only show top level items
if (0 !== t.closest('ul.children').length)
return;
if ( this.className && -1 != this.className.indexOf('add-to-top') )
processMethod = api.addMenuItemToTop;
menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID );