Skip to:
Content

BuddyPress.org

Changeset 12396


Ignore:
Timestamp:
05/14/2019 07:04:41 PM (4 months ago)
Author:
boonebgorges
Message:

Ensure that xprofile field value HTML whitelist is applied during profile edit.

See #8063, #8094.

File:
1 edited

Legend:

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

    r12361 r12396  
    1616add_filter( 'bp_get_the_profile_group_description', 'wp_filter_kses', 1 );
    1717add_filter( 'bp_get_the_profile_field_name',        'wp_filter_kses', 1 );
    18 add_filter( 'bp_get_the_profile_field_edit_value',  'wp_filter_kses', 1 );
     18add_filter( 'bp_get_the_profile_field_edit_value',  'xprofile_sanitize_data_value_before_display', 1, 3 );
    1919add_filter( 'bp_get_the_profile_field_description', 'wp_filter_kses', 1 );
    2020add_filter( 'bp_get_the_profile_field_value',       'xprofile_sanitize_data_value_before_display', 1, 3 );
Note: See TracChangeset for help on using the changeset viewer.