Ticket #3146: patch.diff
File patch.diff, 2.2 KB (added by , 14 years ago) |
---|
-
bp-xprofile/bp-xprofile-classes.php
Class BP_XProfile_Group { 24 24 return false; 25 25 26 26 $this->id = $group->id; 27 $this->name = $group->name;28 $this->description = $group->description;27 $this->name = stripslashes($group->name); 28 $this->description = stripslashes($group->description); 29 29 $this->can_delete = $group->can_delete; 30 30 } 31 31 … … Class BP_XProfile_ProfileData { 750 750 $result = $wpdb->query( $wpdb->prepare( "UPDATE {$bp->profile->table_name_data} SET value = %s, last_updated = %s WHERE user_id = %d AND field_id = %d", $this->value, $this->last_updated, $this->user_id, $this->field_id ) ); 751 751 752 752 // Data removed, delete the entry. 753 elseif ( $this->exists() && empty( $this->value ) ) 753 elseif ( $this->exists() && empty( $this->value ) ) 754 754 $result = $this->delete(); 755 755 756 756 else -
bp-xprofile/bp-xprofile-filters.php
2 2 3 3 /* Apply WordPress defined filters */ 4 4 5 add_filter( 'bp_get_the_profile_group_name', 'wp_filter_kses', 1 ); 6 add_filter( 'bp_get_the_profile_group_description', 'wp_filter_kses', 1 ); 5 7 add_filter( 'bp_get_the_profile_field_value', 'wp_filter_kses', 1 ); 6 8 add_filter( 'bp_get_the_profile_field_name', 'wp_filter_kses', 1 ); 7 9 add_filter( 'bp_get_the_profile_field_edit_value', 'wp_filter_kses', 1 ); … … add_filter( 'bp_get_the_profile_field_value', 'wpautop' ); 14 16 add_filter( 'bp_get_the_profile_field_value', 'make_clickable' ); 15 17 add_filter( 'bp_get_the_profile_field_value', 'force_balance_tags' ); 16 18 19 add_filter( 'bp_get_the_profile_group_name', 'stripslashes' ); 20 add_filter( 'bp_get_the_profile_group_description', 'stripslashes' ); 17 21 add_filter( 'bp_get_the_profile_field_value', 'stripslashes' ); 18 22 add_filter( 'bp_get_the_profile_field_edit_value', 'stripslashes' ); 19 23 add_filter( 'bp_get_the_profile_field_name', 'stripslashes' );