Fix object name. props GaryJ. see #14045.
git-svn-id: http://core.svn.wordpress.org/trunk@23760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fde51bb098
commit
f0a60fb9c9
|
@ -45,7 +45,7 @@ var wpNavMenu;
|
|||
if ( api.menuList.length )
|
||||
this.initSortables();
|
||||
|
||||
if( menu.oneThemeLocationNoMenus )
|
||||
if ( menus.oneThemeLocationNoMenus )
|
||||
$( '#posttype-page' ).addSelectedToMenu( api.addMenuItemToBottom );
|
||||
|
||||
this.initAccessibility();
|
||||
|
@ -162,7 +162,7 @@ var wpNavMenu;
|
|||
|
||||
return this.each(function() {
|
||||
var t = $(this), menuItems = {},
|
||||
checkboxes = ( menu.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 = new RegExp('menu-item\\[(\[^\\]\]*)');
|
||||
|
||||
processMethod = processMethod || api.addMenuItemToBottom;
|
||||
|
|
|
@ -355,7 +355,7 @@ $page_count = wp_count_posts( 'page' );
|
|||
$one_theme_location_no_menus = ( 1 == count( get_registered_nav_menus() ) && ! $add_new_screen && empty( $nav_menus ) && ! empty( $page_count->publish ) ) ? true : false;
|
||||
|
||||
$l10n = array(
|
||||
"oneThemeLocationNoMenus" => ( $one_theme_location_no_menus ) ? 'true' : 'false',
|
||||
"oneThemeLocationNoMenus" => $one_theme_location_no_menus,
|
||||
"move" => __( 'Move' ),
|
||||
"menuFocus" => __( 'Menu item %d of %d' ),
|
||||
"subMenuFocus" => __( 'Sub item number %d under' ),
|
||||
|
|
Loading…
Reference in New Issue