WordPress.org

Make WordPress Core

Changeset 23760


Ignore:
Timestamp:
03/20/2013 05:46:39 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Fix object name. props GaryJ. see #14045.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/nav-menu.js

    r23727 r23760  
    4343            this.attachUnsavedChangesListener();
    4444
    45             if( api.menuList.length )
     45            if ( api.menuList.length )
    4646                this.initSortables();
    4747
    48             if( menu.oneThemeLocationNoMenus )
     48            if ( menus.oneThemeLocationNoMenus )
    4949                $( '#posttype-page' ).addSelectedToMenu( api.addMenuItemToBottom );
    5050
     
    163163                    return this.each(function() {
    164164                        var t = $(this), menuItems = {},
    165                             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'),
     165                            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'),
    166166                            re = new RegExp('menu-item\\[(\[^\\]\]*)');
    167167
  • trunk/wp-admin/nav-menus.php

    r23727 r23760  
    356356
    357357$l10n = array(
    358     "oneThemeLocationNoMenus" => ( $one_theme_location_no_menus ) ? 'true' : 'false',
     358    "oneThemeLocationNoMenus" => $one_theme_location_no_menus,
    359359    "move" => __( 'Move' ),
    360360    "menuFocus" => __( 'Menu item %d of %d' ),
Note: See TracChangeset for help on using the changeset viewer.