diff --git a/src/wp-admin/css/customize-widgets.css b/src/wp-admin/css/customize-widgets.css index f025f79f33..20a8a6987c 100644 --- a/src/wp-admin/css/customize-widgets.css +++ b/src/wp-admin/css/customize-widgets.css @@ -7,11 +7,11 @@ * preview loads and we know whether the sidebars are used in the template. */ -.control-section[id^="accordion-section-sidebar-widgets-"], +.control-section.control-section-sidebar, .customize-control-sidebar_widgets label, .customize-control-sidebar_widgets .hide-if-js { /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */ - display:none; + display: none; } .customize-control-widget_form .widget-top { diff --git a/src/wp-includes/class-wp-customize-panel.php b/src/wp-includes/class-wp-customize-panel.php index 2fd3937ce4..f5da18e3d7 100644 --- a/src/wp-includes/class-wp-customize-panel.php +++ b/src/wp-includes/class-wp-customize-panel.php @@ -103,11 +103,13 @@ class WP_Customize_Panel { public $sections; /** + * Type of this panel. + * * @since 4.1.0 * @access public * @var string */ - public $type; + public $type = 'default'; /** * Active callback. @@ -285,8 +287,9 @@ class WP_Customize_Panel { * @access protected */ protected function render() { + $classes = 'accordion-section control-section control-panel control-panel-' . $this->type; ?> -