Make WordPress Core

Changeset 25102


Ignore:
Timestamp:
08/23/2013 04:17:48 PM (11 years ago)
Author:
helen
Message:

Actually display customizer section descriptions in a meaningful way. props obenland, helen. fixes #24392.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-section.php

    r23417 r25102  
    8181        ?>
    8282        <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="control-section accordion-section">
    83             <h3 class="accordion-section-title" tabindex="0" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
     83            <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?></h3>
    8484            <ul class="accordion-section-content">
     85                <?php if ( ! empty( $this->description ) ) : ?>
     86                <li><p class="description"><?php echo $this->description; ?></p></li>
     87                <?php endif; ?>
    8588                <?php
    8689                foreach ( $this->controls as $control )
Note: See TracChangeset for help on using the changeset viewer.