Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2011 09:39:42 PM (13 years ago)
Author:
djpaul
Message:

Trim profile data on save to avoid trailing spaces. Fixes #3162

File:
1 edited

Legend:

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

    r4200 r4221  
    3939add_filter( 'bp_get_the_profile_field_value',         'xprofile_filter_link_profile_data', 50, 2 );
    4040
    41 add_filter( 'xprofile_data_value_before_save',        'xprofile_sanitize_data_value_before_save', 1, 2 );       
     41add_filter( 'xprofile_data_value_before_save',        'xprofile_sanitize_data_value_before_save', 1, 2 );
     42add_filter( 'xprofile_filtered_data_value_before_save', 'trim', 2 );
    4243
    4344/**
Note: See TracChangeset for help on using the changeset viewer.