Fix replacement regex in wp-admin/js/nav-menu.js.

props rzen, jeremyfelt.
fixes #26047.

git-svn-id: https://develop.svn.wordpress.org/trunk@26233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-11-16 07:41:01 +00:00
parent 3d0c903bfd
commit 9a8ec07996
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ var wpNavMenu;
return this.each(function() { return this.each(function() {
var t = $(this), menuItems = {}, var t = $(this), menuItems = {},
checkboxes = ( menus.oneThemeLocationNoMenus && 0 === t.find( '.tabs-panel-active .categorychecklist li input:checked' ).length ) ? t.find( '#page-all li input[type="checkbox"]' ) : t.find( '.tabs-panel-active .categorychecklist li input:checked' ), checkboxes = ( menus.oneThemeLocationNoMenus && 0 === t.find( '.tabs-panel-active .categorychecklist li input:checked' ).length ) ? t.find( '#page-all li input[type="checkbox"]' ) : t.find( '.tabs-panel-active .categorychecklist li input:checked' ),
re = /menu-item\[([^]\]*)/; re = /menu-item\[([^\]]*)/;
processMethod = processMethod || api.addMenuItemToBottom; processMethod = processMethod || api.addMenuItemToBottom;