Make WordPress Core

Ticket #28709: 28709.15.diff

File 28709.15.diff, 2.8 KB (added by ocean90, 10 years ago)
  • src/wp-admin/css/customize-widgets.css

     
    77 * preview loads and we know whether the sidebars are used in the template.
    88 */
    99
    10 .control-section[id^="accordion-section-sidebar-widgets-"],
     10.control-section.control-section-sidebar,
    1111.customize-control-sidebar_widgets label,
    1212.customize-control-sidebar_widgets .hide-if-js {
    1313        /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */
    14         display:none;
     14        display: none;
    1515}
    1616
    1717.customize-control-widget_form .widget-top {
  • src/wp-includes/class-wp-customize-panel.php

     
    103103        public $sections;
    104104
    105105        /**
     106         * Type of this panel.
     107         *
    106108         * @since 4.1.0
    107109         * @access public
    108110         * @var string
    109111         */
    110         public $type;
     112        public $type = 'default';
    111113
    112114        /**
    113115         * Active callback.
     
    285287         * @access protected
    286288         */
    287289        protected function render() {
     290                $classes = 'accordion-section control-section control-panel control-panel-' . $this->type;
    288291                ?>
    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 ); ?>">
    290293                        <h3 class="accordion-section-title" tabindex="0">
    291294                                <?php echo esc_html( $this->title ); ?>
    292295                                <span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span>
  • src/wp-includes/class-wp-customize-section.php

     
    112112        public $controls;
    113113
    114114        /**
     115         * Type of this section.
     116         *
    115117         * @since 4.1.0
    116118         * @access public
    117119         * @var string
    118120         */
    119         public $type;
     121        public $type = 'default';
    120122
    121123        /**
    122124         * Active callback.
     
    292294         * @since 3.4.0
    293295         */
    294296        protected function render() {
    295                 $classes = 'control-section accordion-section';
     297                $classes = 'accordion-section control-section control-section-' . $this->type;
    296298                ?>
    297299                <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
    298300                        <h3 class="accordion-section-title" tabindex="0">
     
    324326class WP_Customize_Sidebar_Section extends WP_Customize_Section {
    325327
    326328        /**
     329         * Type of this section.
     330         *
    327331         * @since 4.1.0
    328332         * @access public
    329333         * @var string