Make WordPress Core

Ticket #33411: 33411.diff

File 33411.diff, 463 bytes (added by westonruter, 9 years ago)
  • src/wp-admin/js/customize-nav-menus.js

    diff --git src/wp-admin/js/customize-nav-menus.js src/wp-admin/js/customize-nav-menus.js
    index e315019..f5296b6 100644
     
    119119                initialize: function() {
    120120                        var self = this;
    121121
     122                        if ( ! api.panel.has( 'nav_menus' ) ) {
     123                                return;
     124                        }
     125
    122126                        this.$search = $( '#menu-items-search' );
    123127                        this.sectionContent = this.$el.find( '.accordion-section-content' );
    124128