[buddypress-trac] [BuddyPress Trac] #8494: PHP error with WP Biography xProfile field type sanitization callback
buddypress-trac
noreply at wordpress.org
Mon Jun 28 17:05:12 UTC 2021
#8494: PHP error with WP Biography xProfile field type sanitization callback
------------------------------+---------------------
Reporter: imath | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 8.1.0
Component: Extended Profile | Version: 8.0.0
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+---------------------
Comment (by imath):
In [changeset:"12977" 12977]:
{{{
#!CommitTicketReference repository="" revision="12977"
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)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8494#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list