Ticket #28709: 28709.15.diff
File 28709.15.diff, 2.8 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/customize-widgets.css
7 7 * preview loads and we know whether the sidebars are used in the template. 8 8 */ 9 9 10 .control-section [id^="accordion-section-sidebar-widgets-"],10 .control-section.control-section-sidebar, 11 11 .customize-control-sidebar_widgets label, 12 12 .customize-control-sidebar_widgets .hide-if-js { 13 13 /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */ 14 display: none;14 display: none; 15 15 } 16 16 17 17 .customize-control-widget_form .widget-top { -
src/wp-includes/class-wp-customize-panel.php
103 103 public $sections; 104 104 105 105 /** 106 * Type of this panel. 107 * 106 108 * @since 4.1.0 107 109 * @access public 108 110 * @var string 109 111 */ 110 public $type ;112 public $type = 'default'; 111 113 112 114 /** 113 115 * Active callback. … … 285 287 * @access protected 286 288 */ 287 289 protected function render() { 290 $classes = 'accordion-section control-section control-panel control-panel-' . $this->type; 288 291 ?> 289 <li id="accordion-panel-<?php echo esc_attr( $this->id ); ?>" class=" control-section control-panel accordion-section">292 <li id="accordion-panel-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> 290 293 <h3 class="accordion-section-title" tabindex="0"> 291 294 <?php echo esc_html( $this->title ); ?> 292 295 <span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span> -
src/wp-includes/class-wp-customize-section.php
112 112 public $controls; 113 113 114 114 /** 115 * Type of this section. 116 * 115 117 * @since 4.1.0 116 118 * @access public 117 119 * @var string 118 120 */ 119 public $type ;121 public $type = 'default'; 120 122 121 123 /** 122 124 * Active callback. … … 292 294 * @since 3.4.0 293 295 */ 294 296 protected function render() { 295 $classes = ' control-section accordion-section';297 $classes = 'accordion-section control-section control-section-' . $this->type; 296 298 ?> 297 299 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> 298 300 <h3 class="accordion-section-title" tabindex="0"> … … 324 326 class WP_Customize_Sidebar_Section extends WP_Customize_Section { 325 327 326 328 /** 329 * Type of this section. 330 * 327 331 * @since 4.1.0 328 332 * @access public 329 333 * @var string