[buddypress-trac] [BuddyPress Trac] #6789: XProfile: do not store serialized arrays for multi-value profile field data

buddypress-trac noreply at wordpress.org
Thu Jun 15 12:38:19 UTC 2017


#6789: XProfile: do not store serialized arrays for multi-value profile field data
------------------------------+-----------------------------
 Reporter:  Offereins         |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Extended Profile  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |
------------------------------+-----------------------------

Comment (by Offereins):

 So, to get a start somewhere, I decided to first identify whether fields
 (and their types) would accept multiple values. This is to find a way to
 still support fields that want to save their values as serialized arrays
 versus fields that would have the data as separate value rows.

 By default this is the case for the `Multiselect` and `Checkbox` field
 types. While they already are uniquely identified by their
 `supports_multiple_defaults` class property, that prop actually signals a
 different function than saving multiple values. That is why I introduce
 the `supports_multiple_values` property/flag - also just for these types.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6789#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list