Skip to:
Content

BuddyPress.org

Changeset 4080


Ignore:
Timestamp:
03/08/2011 12:25:15 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Ensure esc_html and force_balance_tags are called in the correct order when editing your profile. (1.2 branch)

Location:
branches/1.2/bp-xprofile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-xprofile/bp-xprofile-filters.php

    r3253 r4080  
    1414add_filter( 'bp_get_the_profile_field_value',         'make_clickable'     );
    1515add_filter( 'bp_get_the_profile_field_value',         'force_balance_tags' );
     16
     17add_filter( 'bp_get_the_profile_field_edit_value',    'force_balance_tags' );
     18add_filter( 'bp_get_the_profile_field_edit_value',    'esc_html'           );
    1619
    1720add_filter( 'bp_get_the_profile_field_value',         'stripslashes' );
  • branches/1.2/bp-xprofile/bp-xprofile-templatetags.php

    r3500 r4080  
    318318                $field->data->value = bp_unserialize_profile_field( $field->data->value );
    319319
    320                 return apply_filters( 'bp_get_the_profile_field_edit_value', esc_html( $field->data->value ) );
     320                return apply_filters( 'bp_get_the_profile_field_edit_value', $field->data->value );
    321321        }
    322322
Note: See TracChangeset for help on using the changeset viewer.