Ticket #30737: 30737.fix-custom-sections.2.diff
File 30737.fix-custom-sections.2.diff, 1.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/customize-controls.js
386 386 387 387 if ( 0 !== $( '#tmpl-' + container.templateSelector ).length ) { 388 388 template = wp.template( container.templateSelector ); 389 if ( template && container.container ) { 390 return $.trim( template( container.params ) ); 391 } 389 } else { 390 template = wp.template( 'customize-' + container.containerType + '-default' ); 392 391 } 392 if ( template && container.container ) { 393 return $.trim( template( container.params ) ); 394 } 393 395 394 396 return '<li></li>'; 395 397 } … … 1216 1218 // Add the content to the container. 1217 1219 if ( 0 !== $( '#tmpl-' + panel.templateSelector + '-content' ).length ) { 1218 1220 template = wp.template( panel.templateSelector + '-content' ); 1219 if ( template && panel.container ) { 1220 panel.container.find( '.accordion-sub-container' ).html( template( panel.params ) ); 1221 } 1221 } else { 1222 template = wp.template( 'customize-panel-default-content' ); 1222 1223 } 1224 if ( template && panel.container ) { 1225 panel.container.find( '.accordion-sub-container' ).html( template( panel.params ) ); 1226 } 1223 1227 } 1224 1228 }); 1225 1229