Opened 16 years ago
Closed 16 years ago
#2777 closed defect (bug) (fixed)
xprofile field select box/radio/checkbox option names aren't filtered
| Reported by: | DJPaul | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Extended Profile | Version: | |
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.