diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 781a255..c24e414 100644
|
|
|
1850 | 1850 | touchDrag: false, |
1851 | 1851 | |
1852 | 1852 | /** |
| 1853 | * Defer rendering the theme control until the section is displayed. |
| 1854 | * |
| 1855 | * @since 4.2.0 |
| 1856 | */ |
| 1857 | renderContent: function () { |
| 1858 | var control = this, |
| 1859 | renderContentArgs = arguments; |
| 1860 | api.section( control.section(), function ( section ) { |
| 1861 | if ( section.expanded() ) { |
| 1862 | api.Control.prototype.renderContent.apply( control, renderContentArgs ); |
| 1863 | } else { |
| 1864 | section.expanded.bind( function ( expanded ) { |
| 1865 | if ( expanded ) { |
| 1866 | api.Control.prototype.renderContent.apply( control, renderContentArgs ); |
| 1867 | } |
| 1868 | } ); |
| 1869 | } |
| 1870 | } ); |
| 1871 | }, |
| 1872 | |
| 1873 | /** |
1853 | 1874 | * @since 4.2.0 |
1854 | 1875 | */ |
1855 | 1876 | ready: function() { |