Skip to:
Content

BuddyPress.org

Changeset 12977


Ignore:
Timestamp:
06/28/2021 05:05:06 PM (4 years ago)
Author:
imath
Message:

Make sure saving empty WP xProfile fields does generate an error

WP xProfile field types are allowing their values to be empty. In such a case the xprofile_set_field_data() is using an array as the value to be saved. This is done to avoid the value of certain types of fields (checkboxes, multiselects) to be overwritten by the default value on next edit.

For WP xProfile field types, we simply need to return an empty string in this case.

See #8494 (branch 8.0)

Location:
branches/8.0/src/bp-xprofile/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.