Make WordPress Core

Ticket #42360: 42360.0.diff

File 42360.0.diff, 831 bytes (added by westonruter, 7 years ago)
  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index 47e546f9d3..525ac271f6 100644
     
    19201920                                return;
    19211921                        }
    19221922
    1923                         if ( expanded ) {
     1923                        function expand() {
    19241924
    19251925                                // Try to load controls if none are loaded yet.
    19261926                                if ( 0 === section.loaded ) {
     
    19651965                                        args.completeCallback();
    19661966                                }
    19671967                                section.updateCount(); // Show this section's count.
     1968                        }
     1969
     1970                        if ( expanded ) {
     1971                                if ( section.panel() && api.panel( section.panel() ) ) {
     1972                                        api.panel( section.panel() ).expand({
     1973                                                duration: args.duration,
     1974                                                completeCallback: expand
     1975                                        });
     1976                                } else {
     1977                                        expand();
     1978                                }
    19681979                        } else {
    19691980                                section.contentContainer.removeClass( 'current-section' );
    19701981