Skip to:
Content

BuddyPress.org

#7627 closed defect (bug) (fixed)

bp_get_profile_field_data() doesn't translate the datebox field values

Reported by: antonioeatgoat Owned by: slaFFik
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.0
Component: I18N Keywords: has-patch
Cc:

Description

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 21 months ago.
Used date_i18n() instead of just date()

Download all attachments as: .zip

Change History (3)

@antonioeatgoat
21 months ago

Used date_i18n() instead of just date()

#1 @DJPaul
21 months 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
21 months 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.