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:
parent
df1c0c2363
commit
a2d9547825
|
@ -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' );
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue