Make WordPress Core

Ticket #30737: 30737.fix-custom-sections.2.diff

File 30737.fix-custom-sections.2.diff, 1.3 KB (added by celloexpressions, 10 years ago)

fix typo

  • src/wp-admin/js/customize-controls.js

     
    386386
    387387                        if ( 0 !== $( '#tmpl-' + container.templateSelector ).length ) {
    388388                                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' );
    392391                        }
     392                        if ( template && container.container ) {
     393                                return $.trim( template( container.params ) );
     394                        }
    393395
    394396                        return '<li></li>';
    395397                }
     
    12161218                        // Add the content to the container.
    12171219                        if ( 0 !== $( '#tmpl-' + panel.templateSelector + '-content' ).length ) {
    12181220                                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' );
    12221223                        }
     1224                        if ( template && panel.container ) {
     1225                                panel.container.find( '.accordion-sub-container' ).html( template( panel.params ) );
     1226                        }
    12231227                }
    12241228        });
    12251229