Changes between Initial Version and Version 1 of Ticket #4365, comment 6
- Timestamp:
- 07/23/2014 11:31:43 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4365, comment 6
initial v1 1 1 I think we have 2 ways to fix the problem : 2 1. As the $field_value param of the function {{{xprofile_format_profile_field()}}} is a string : we can as wbajzek is suggesting "strtotime" the value before using {{{bp_format_time()}}} in case of a datebox field. (see 4365.strtotime.patch)2 1. As the $field_value param of the function {{{xprofile_format_profile_field()}}} is a string : we can as wbajzek is suggesting "strtotime" the value before using {{{bp_format_time()}}} in case of a datebox field. (see [https://buddypress.trac.wordpress.org/attachment/ticket/4365/4365.strtotime.patch 4365.strtotime.patch]) 3 3 4 2. or i've read in the docblock of this function that the "todo" suggests to move it as a filter. But there are already 2 filters in place that are doing the job (see 4365.filters.patch) :4 2. or i've read in the docblock of this function that the "todo" suggests to move it as a filter. But there are already 2 filters in place that are doing the job (see [https://buddypress.trac.wordpress.org/attachment/ticket/4365/4365.filters.patch 4365.filters.patch]) : 5 5 - xprofile_filter_format_field_value 6 6 - and xprofile_filter_format_field_value_by_type