WordPress.org

Make WordPress Core

Ticket #27591: 27591.2.patch

File 27591.2.patch, 1.6 KB (added by ocean90, 7 years ago)
  • src/wp-includes/class-wp-customize-section.php

     
    177177                }
    178178                ?>
    179179                <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
    180                         <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?></h3>
     180                        <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?> <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span></h3>
    181181                        <ul class="accordion-section-content">
    182182                                <?php if ( ! empty( $this->description ) ) : ?>
    183183                                <li><p class="description customize-section-description"><?php echo $this->description; ?></p></li>
     
    239239        protected function render() {
    240240                ?>
    241241                <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="control-section control-panel accordion-section">
    242                         <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?></h3>
     242                        <h3 class="accordion-section-title" tabindex="0"><?php echo esc_html( $this->title ); ?> <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span></h3>
    243243                        <span class="control-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span>
    244244                        <ul class="accordion-sub-container control-panel-content">
    245245                                <li class="accordion-section control-section<?php if ( empty( $this->description ) ) echo ' cannot-expand'; ?>">