#8494 closed defect (bug) (fixed)
PHP error with WP Biography xProfile field type sanitization callback
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 9.0.0 | Priority: | normal |
| Severity: | normal | Version: | 8.0.0 |
| Component: | Extended Profile | Keywords: | has-patch |
| Cc: |
Description
When this field is empty, BP_XProfile_Field_Type_WordPress::sanitize_for_db() is generating an error trying to trim an array.
I need to understand why it's not a string as expected 🤔
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Ok, I got it:
xprofile_set_field_data()is using an array for fields accepting a null value (used for checkboxes, multiselect). That's why.