Opened 15 years ago
Closed 15 years ago
#2777 closed defect (bug) (fixed)
xprofile field select box/radio/checkbox option names aren't filtered
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.5 | Priority: | normal |
| Severity: | Version: | ||
| Component: | Extended Profile | Keywords: | |
| Cc: |
Description
When creating a new xprofile field which is a select box, radio buttons or checkboxes, the field's options (the values which you completing your profile) aren't filtered, they are just inserted into the database via $wpdb->prepare() as-is.
We should filter these options the same as the profile field name/values.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
2777-1.patch adds filters and also cleans up some WP_DEBUG errors.
Posting it here to make sure it's what you are looking for. I used the same two filter names and passed along the field type as an argument, as it seemed unneccesary to have a ton of different filters.