Changeset 7599
- Timestamp:
- 11/24/2013 04:01:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-template.php
r7150 r7599 438 438 global $field; 439 439 440 // Generally a required dropdown field will not get a blank value at441 // the top. Set 'null_on_required' to true if you want this blank value442 // even on required fields.443 440 $defaults = array( 444 'type' => false, 445 'null_on_required' => false 441 'type' => false, 446 442 ); 447 443 … … 473 469 case 'selectbox': 474 470 475 if ( !$field->is_required || $null_on_required ) { 476 $html .= '<option value="">' . /* translators: no option picked in select box */ __( '----', 'buddypress' ) . '</option>'; 477 } 471 $html .= '<option value="">' . /* translators: no option picked in select box */ __( '----', 'buddypress' ) . '</option>'; 478 472 479 473 $original_option_values = '';
Note: See TracChangeset
for help on using the changeset viewer.