diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 47e546f9d3..525ac271f6 100644
|
|
|
1920 | 1920 | return; |
1921 | 1921 | } |
1922 | 1922 | |
1923 | | if ( expanded ) { |
| 1923 | function expand() { |
1924 | 1924 | |
1925 | 1925 | // Try to load controls if none are loaded yet. |
1926 | 1926 | if ( 0 === section.loaded ) { |
… |
… |
|
1965 | 1965 | args.completeCallback(); |
1966 | 1966 | } |
1967 | 1967 | 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 | } |
1968 | 1979 | } else { |
1969 | 1980 | section.contentContainer.removeClass( 'current-section' ); |
1970 | 1981 | |