Skip to:
Content

BuddyPress.org

Changeset 10311


Ignore:
Timestamp:
10/27/2015 12:29:16 AM (4 years ago)
Author:
mercime
Message:

xProfile: Add labels for datebox field types in wp-admin.

See #6655.

File:
1 edited

Legend:

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

    r10203 r10311  
    271271        ) ); ?>
    272272
     273        <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="screen-reader-text"><?php esc_html_e( 'Select day', 'buddypress' ); ?></label>
    273274        <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    274275            <?php bp_the_profile_field_options( array( 'type' => 'day' ) ); ?>
    275276        </select>
    276277
     278        <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="screen-reader-text"><?php esc_html_e( 'Select month', 'buddypress' ); ?></label>
    277279        <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    278280            <?php bp_the_profile_field_options( array( 'type' => 'month' ) ); ?>
    279281        </select>
    280282
     283        <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="screen-reader-text"><?php esc_html_e( 'Select year', 'buddypress' ); ?></label>
    281284        <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    282285            <?php bp_the_profile_field_options( array( 'type' => 'year' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.