Make WordPress Core

Changeset 33753


Ignore:
Timestamp:
08/26/2015 06:42:16 AM (9 years ago)
Author:
westonruter
Message:

Customizer: Prevent JS error during init when nav_menus panel is removed by plugin.

Fixes #33411 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r33618 r33753  
    119119        initialize: function() {
    120120            var self = this;
     121
     122            if ( ! api.panel.has( 'nav_menus' ) ) {
     123                return;
     124            }
    121125
    122126            this.$search = $( '#menu-items-search' );
Note: See TracChangeset for help on using the changeset viewer.