Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/02/2015 12:51:51 AM (5 years ago)
Author:
johnjamesjacoby
Message:

XProfile: Move field save() sanitization into filters for consistency between save method & saving via the admin UI. See #6340.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-filters.php

    r9678 r9681  
    5656add_filter( 'xprofile_filtered_data_value_before_save', 'trim', 2 );
    5757
    58 // Save filters
     58// Save field groups
    5959add_filter( 'xprofile_group_name_before_save',        'wp_filter_kses' );
    6060add_filter( 'xprofile_group_description_before_save', 'wp_filter_kses' );
     61
     62// Save fields
     63add_filter( 'xprofile_field_name_before_save',         'wp_filter_kses' );
     64add_filter( 'xprofile_field_type_before_save',         'wp_filter_kses' );
     65add_filter( 'xprofile_field_description_before_save',  'wp_filter_kses' );
     66add_filter( 'xprofile_field_order_by_before_save',     'wp_filter_kses' );
     67add_filter( 'xprofile_field_is_required_before_save',  'absint' );
     68add_filter( 'xprofile_field_field_order_before_save',  'absint' );
     69add_filter( 'xprofile_field_option_order_before_save', 'absint' );
     70add_filter( 'xprofile_field_can_delete_before_save',   'absint' );
    6171
    6272/**
Note: See TracChangeset for help on using the changeset viewer.