[buddypress-trac] [BuddyPress] #2685: xprofile_get_field_data() with checkboxes no longer working correctly
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Wed Oct 27 14:51:26 UTC 2010
#2685: xprofile_get_field_data() with checkboxes no longer working correctly
----------------------+-----------------------------------------------------
Reporter: r-a-y | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.2.7
Component: XProfile | Keywords:
----------------------+-----------------------------------------------------
Comment(by boonebgorges):
The problem arose with [3270], which applies maybe_unserialize() to the
output of get_value_byid(). When xprofile_get_field_data() is called on a
checkbox, it gets the value from get_value_byid(). The output of
xprofile_get_field_data is then run through some formatting filters like
kses. The problem is that while those filters could handle the old
serialized string (which was then unserialized in the template tags), they
don't know how to handle arrays.
Before reverting the change I want to talk to JJJ (who applied [3270]) to
see if there's a good reason, other than preferring to use
maybe_unserialize in one place instead of two.
--
Ticket URL: <http://trac.buddypress.org/ticket/2685#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list