Skip to:
Content

BuddyPress.org

Ticket #5646: 5464.2.patch

File 5464.2.patch, 656 bytes (added by bi0xid, 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 { 
    16261626                        case 'year':
    16271627                                $html = sprintf( '<option value="" %1$s>%2$s</option>', selected( $year, 0, false ), /* translators: no option picked in select box */ __( '----', 'buddypress' ) );
    16281628
    1629                                 for ( $i = 2037; $i > 1901; $i-- ) {
     1629                                for ( $i = date('Y'); $i > 1901; $i-- ) {
    16301630                                        $html .= sprintf( '<option value="%1$s" %2$s>%3$s</option>', (int) $i, selected( $year, $i, false ), (int) $i );
    16311631                                }
    16321632                        break;