Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/08/2016 11:14:38 PM (9 years ago)
Author:
mercime
Message:

Accessibility: Add labels for xProfile datebox fields.

Fixes #6887.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    r10434 r10573  
    100100            do_action( bp_get_the_profile_field_errors_action() ); ?>
    101101
     102            <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="bp-screen-reader-text"><?php esc_html_e( 'Select day', 'buddypress' ); ?></label>
    102103            <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    103104                <?php bp_the_profile_field_options( array(
     
    107108            </select>
    108109
     110            <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="bp-screen-reader-text"><?php esc_html_e( 'Select month', 'buddypress' ); ?></label>
    109111            <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    110112                <?php bp_the_profile_field_options( array(
     
    114116            </select>
    115117
     118            <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="bp-screen-reader-text"><?php esc_html_e( 'Select year', 'buddypress' ); ?></label>
    116119            <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    117120                <?php bp_the_profile_field_options( array(
Note: See TracChangeset for help on using the changeset viewer.