[buddypress-trac] [BuddyPress] #3670: datebox error in translated bp

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Oct 10 11:24:00 UTC 2011


#3670: datebox error in translated bp
--------------------------+-----------------------------
 Reporter:  mind1         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XProfile      |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 datebox field on edit profile page doesn't work properly with translated
 bp

 bp-xprofile-template.php: line 581

 this gets translated month
 {{{
 $month = mysql2date( 'F', $date );
 }}}
 but then it is compared to english month, so correct month is never
 selected on edit page
 {{{
 $html .= '<option value="' . $eng_months[$i] . '"' . selected( $month,
 $eng_months[$i], false ) . '>' . $months[$i] . '</option>';
 }}}

 this should fix that
 {{{
 $month = mysql2date( 'F', $date, false );
 }}}

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


More information about the buddypress-trac mailing list