[buddypress-trac] [BuddyPress] #2172: Function bp_profile_field_data () returns raw data for non-string data types

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Apr 9 17:27:32 UTC 2010


#2172: Function bp_profile_field_data () returns raw data for non-string data
types
--------------------+-------------------------------------------------------
 Reporter:  foxly   |       Owner:                                                        
     Type:  defect  |      Status:  new                                                   
 Priority:  minor   |   Milestone:  1.3                                                   
Component:  Core    |    Keywords:  bp_profile_field_data (), bp_get_profile_field_data ()
--------------------+-------------------------------------------------------
Changes (by mrmaz):

  * component:  => Core


Comment:

 That function is returning serialized data. You need to call
 maybe_unserialize() on it and then format it yourself. I would think that
 it should be unserialized automatically, but maybe that is by design for
 some reason.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2172#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list