Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

#2777 closed defect (bug) (fixed)

xprofile field select box/radio/checkbox option names aren't filtered

Reported by: DJPaul 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)

2777-1.patch (2.8 KB) - added by boonebgorges 9 years ago.

Download all attachments as: .zip

Change History (4)

#1 @boonebgorges
9 years ago

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.

@boonebgorges
9 years ago

#2 @DJPaul
9 years ago

+1 looks good to me :)

#3 @boonebgorges
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3544]) Adds filters to profile field options before the field is created or saved. Fixes #2777. Also fixes a WP_DEBUG warning.

Note: See TracTickets for help on using tickets.