Ticket #25122: 25122.4.diff
File 25122.4.diff, 740 bytes (added by , 12 years ago) |
---|
-
wp-admin/js/nav-menu.js
178 178 var t = $(this), 179 179 listItemDBIDMatch = re.exec( t.attr('name') ), 180 180 listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10); 181 182 // Only show top level items 183 if (0 !== t.closest('ul.children').length) 184 return; 185 181 186 if ( this.className && -1 != this.className.indexOf('add-to-top') ) 182 187 processMethod = api.addMenuItemToTop; 183 188 menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID );