Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #4365, comment 6


Ignore:
Timestamp:
07/23/2014 11:31:43 AM (10 years ago)
Author:
imath
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4365, comment 6

    initial v1  
    11I 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)
     21. 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])
    33
    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) :
     42. 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]) :
    55- xprofile_filter_format_field_value
    66- and xprofile_filter_format_field_value_by_type