Skip to:
Content

BuddyPress.org

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)

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

Download all attachments as: .zip

Change History (4)

#1 @boonebgorges
16 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.

#2 @DJPaul
16 years ago

+1 looks good to me :)

#3 @boonebgorges
16 years ago

  • Resolutionfixed
  • Status newclosed

(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.