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

Fixes #33411 for trunk.

Built from https://develop.svn.wordpress.org/trunk@33753


git-svn-id: http://core.svn.wordpress.org/trunk@33721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2015-08-26 06:43:22 +00:00
parent df1c0c2363
commit a2d9547825
3 changed files with 7 additions and 3 deletions

View File

@ -119,6 +119,10 @@
initialize: function() { initialize: function() {
var self = this; var self = this;
if ( ! api.panel.has( 'nav_menus' ) ) {
return;
}
this.$search = $( '#menu-items-search' ); this.$search = $( '#menu-items-search' );
this.sectionContent = this.$el.find( '.accordion-section-content' ); this.sectionContent = this.$el.find( '.accordion-section-content' );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-33752'; $wp_version = '4.4-alpha-33753';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.