Ticket #7665: 7665.patch
File 7665.patch, 3.6 KB (added by , 6 years ago) |
---|
-
src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
105 105 */ 106 106 do_action( bp_get_the_profile_field_errors_action() ); ?> 107 107 108 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php 109 /* translators: accessibility text */ 110 esc_html_e( 'Select day', 'buddypress' ); 108 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="bp-datefield"><?php 109 esc_html_e( 'Day', 'buddypress' ); 111 110 ?></label> 112 111 <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>> 113 112 <?php bp_the_profile_field_options( array( … … 116 115 ) ); ?> 117 116 </select> 118 117 119 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php 120 /* translators: accessibility text */ 121 esc_html_e( 'Select month', 'buddypress' ); 118 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="bp-datefield"><?php 119 esc_html_e( 'Month', 'buddypress' ); 122 120 ?></label> 123 121 <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>> 124 122 <?php bp_the_profile_field_options( array( … … 127 125 ) ); ?> 128 126 </select> 129 127 130 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php 131 /* translators: accessibility text */ 132 esc_html_e( 'Select year', 'buddypress' ); 128 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="bp-datefield"><?php 129 esc_html_e( 'Year', 'buddypress' ); 133 130 ?></label> 134 131 <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>> 135 132 <?php bp_the_profile_field_options( array( … … 300 297 'name' => bp_get_the_profile_field_input_name() . '_year' 301 298 ) ); ?> 302 299 303 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="screen-reader-text"><?php 304 /* translators: accessibility text */ 305 esc_html_e( 'Select day', 'buddypress' ); 300 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="bp-datefield"><?php 301 esc_html_e( 'Day', 'buddypress' ); 306 302 ?></label> 307 303 <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>> 308 304 <?php bp_the_profile_field_options( array( 'type' => 'day' ) ); ?> 309 305 </select> 310 306 311 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="screen-reader-text"><?php 312 /* translators: accessibility text */ 313 esc_html_e( 'Select month', 'buddypress' ); 307 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="bp-datefield"><?php 308 esc_html_e( 'Month', 'buddypress' ); 314 309 ?></label> 315 310 <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>> 316 311 <?php bp_the_profile_field_options( array( 'type' => 'month' ) ); ?> 317 312 </select> 318 313 319 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="screen-reader-text"><?php 320 /* translators: accessibility text */ 321 esc_html_e( 'Select year', 'buddypress' ); 314 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="bp-datefield"><?php 315 esc_html_e( 'Year', 'buddypress' ); 322 316 ?></label> 323 317 <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>> 324 318 <?php bp_the_profile_field_options( array( 'type' => 'year' ) ); ?>