mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/branches/4.3@33943 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
819c244a96
commit
8eb9b09fd5
@ -119,6 +119,10 @@
|
||||
initialize: function() {
|
||||
var self = this;
|
||||
|
||||
if ( ! api.panel.has( 'nav_menus' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$search = $( '#menu-items-search' );
|
||||
this.sectionContent = this.$el.find( '.accordion-section-content' );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user