Ticket #5646: 5464.2.patch
File 5464.2.patch, 656 bytes (added by , 11 years ago) |
---|
-
wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php
a b class BP_XProfile_Field_Type_Datebox extends BP_XProfile_Field_Type { 1626 1626 case 'year': 1627 1627 $html = sprintf( '<option value="" %1$s>%2$s</option>', selected( $year, 0, false ), /* translators: no option picked in select box */ __( '----', 'buddypress' ) ); 1628 1628 1629 for ( $i = 2037; $i > 1901; $i-- ) {1629 for ( $i = date('Y'); $i > 1901; $i-- ) { 1630 1630 $html .= sprintf( '<option value="%1$s" %2$s>%3$s</option>', (int) $i, selected( $year, $i, false ), (int) $i ); 1631 1631 } 1632 1632 break;