Make WordPress Core

Changeset 33943 for branches/4.3


Ignore:
Timestamp:
09/07/2015 06:27:11 AM (9 years ago)
Author:
westonruter
Message:

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

Cherry-picks [33753] onto 4.3 branch.
Fixes #33411 for 4.3.

File:
1 edited

Legend:

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

    r33618 r33943  
    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.