Skip to:
Content

BuddyPress.org

Changeset 4434


Ignore:
Timestamp:
05/28/2011 07:19:16 PM (14 years ago)
Author:
djpaul
Message:

Remove slashes from xprofile group name and descriptions. Fixes #3146, props calvin_42

Location:
trunk/bp-xprofile
Files:
2 edited

Legend:

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

    r4400 r4434  
    2929            return false;
    3030
    31         $this->id           = $group->id;
    32         $this->name         = $group->name;
    33         $this->description  = $group->description;
    34         $this->can_delete   = $group->can_delete;
    35         $this->group_order  = $group->group_order;
     31        $this->id          = $group->id;
     32        $this->name        = stripslashes( $group->name );
     33        $this->description = stripslashes( $group->description );
     34        $this->can_delete  = $group->can_delete;
     35        $this->group_order = $group->group_order;
    3636    }
    3737
  • trunk/bp-xprofile/bp-xprofile-filters.php

    r4362 r4434  
    33/* Apply WordPress defined filters */
    44
     5add_filter( 'bp_get_the_profile_group_name',          'wp_filter_kses',       1 );
     6add_filter( 'bp_get_the_profile_group_description',   'wp_filter_kses',       1 );
    57add_filter( 'bp_get_the_profile_field_value',         'xprofile_filter_kses', 1 );
    68add_filter( 'bp_get_the_profile_field_name',          'wp_filter_kses',       1 );
     
    1820add_filter( 'bp_get_the_profile_field_edit_value',    'esc_html'           );
    1921
     22add_filter( 'bp_get_the_profile_group_name',          'stripslashes' );
     23add_filter( 'bp_get_the_profile_group_description',   'stripslashes' );
    2024add_filter( 'bp_get_the_profile_field_value',         'stripslashes' );
    2125add_filter( 'bp_get_the_profile_field_edit_value',    'stripslashes' );
Note: See TracChangeset for help on using the changeset viewer.