Make WordPress Core

Ticket #42022: 42022.5.diff

File 42022.5.diff, 1010 bytes (added by westonruter, 7 years ago)
  • src/wp-includes/customize/class-wp-customize-date-time-control.php

    diff --git src/wp-includes/customize/class-wp-customize-date-time-control.php src/wp-includes/customize/class-wp-customize-date-time-control.php
    index 9f36da0e68..95d52a5878 100644
    class WP_Customize_Date_Time_Control extends WP_Customize_Control { 
    119119                <span class="description customize-control-description">{{ data.description }}</span>
    120120                <div class="date-time-fields">
    121121                        <fieldset class="day-row">
    122                                 <legend class="title-day"><?php esc_html_e( 'Date' ); ?></legend>
     122                                <legend class="title-day {{ ! data.includeTime ? 'screen-reader-text' : '' }}"><?php esc_html_e( 'Date' ); ?></legend>
    123123                                <div class="day-fields clear">
    124124                                        <label for="{{ idPrefix }}date-time-month" class="screen-reader-text"><?php esc_html_e( 'Month' ); ?></label>
    125125                                        <select id="{{ idPrefix }}date-time-month" class="date-input month" data-component="month">