Skip to:

Opened 7 years ago

Closed 6 years ago

#7627 closed defect (bug) (fixed)

bp_get_profile_field_data() doesn't translate the datebox field values

Reported by: antonioeatgoat's profile antonioeatgoat Owned by: slaffik's profile slaFFik
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.0
Component: I18N Keywords: has-patch


As the tile, if you use the function bp_get_profile_field_data() to get the value of a datebox custom field, the value returned isn't translated in the current language set in WordPress settings.

Attachments (1)

Used_date_i18n_instead_of_simple_date.patch (840 bytes) - added by antonioeatgoat 7 years ago.
Used date_i18n() instead of just date()

Download all attachments as: .zip

Change History (3)

7 years ago

Used date_i18n() instead of just date()

#1 @DJPaul
6 years ago

  • Milestone changed from Awaiting Review to 3.0

This is a great find, thanks @antonioeatgoat.

I'm going to review all the other uses of date().

#2 @djpaul
6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In 11749:

xprofile: fix untranslatable dates in front-end display.

Fixes #7627

Props antonioeatgoat

Note: See TracTickets for help on using tickets.