[buddypress-trac] [BuddyPress] #4582: Error in data birthday user

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Oct 5 08:42:44 UTC 2012


#4582: Error in data birthday user
---------------------------+-----------------------------
 Reporter:  albgonzalez13  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Core           |    Version:  1.6.1
 Severity:  normal         |   Keywords:  has-patch
---------------------------+-----------------------------
 Hello, I found an error in the birth date BuddyPress. This error has a
 quick solution.

 The error is in line '''692''' to '''695''' of file '''bp-xprofile-
 template.php'''.

 {{{
 for ( $i = 2037; $i > 1901; $i-- ) {
 $html .= '<option value="' . $i .'"' . selected( $year, $i, false ) . '>'
 . $i . '</option>';
 }
 break;
 }}}


 These lines should be replaced by:

 {{{
 $anyo = date('Y');
 for ( $i = $anyo; $i > 1901; $i-- ) {
 $html .= '<option value="' . $i .'"' . selected( $year, $i, false ) . '>'
 . $i . '</option>';
 }
 break;
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4582>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list