#8494 closed defect (bug) (fixed)
PHP error with WP Biography xProfile field type sanitization callback
| Reported by: | imath | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 9.0.0 |
| Component: | Extended Profile | Version: | 8.0.0 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.