Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/03/2009 11:01:09 PM (15 years ago)
Author:
apeatling
Message:

Added kses filter to activity content with a span tag exception.

File:
1 edited

Legend:

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

    r1492 r1504  
    22
    33/* Apply WordPress defined filters */
     4add_filter( 'bp_get_activity_content', 'wp_filter_kses', 1 );
     5
    46add_filter( 'bp_get_activity_content', 'wptexturize' );
    57
     
    1012add_filter( 'bp_get_activity_content', 'wpautop' );
    1113
     14add_filter( 'bp_get_activity_content', 'make_clickable' );
     15
    1216add_filter( 'bp_get_activity_content', 'stripslashes_deep' );
    1317
    14 add_filter( 'bp_get_activity_content', 'make_clickable' );
     18function bp_activity_add_allowed_tags( $allowedtags ) {
     19    $allowedtags['span'] = array();
     20    $allowedtags['span']['class'] = array();
     21    return $allowedtags;
     22}
     23add_filter( 'edit_allowedtags', 'bp_activity_add_allowed_tags', 1 );
    1524
    1625?>
Note: See TracChangeset for help on using the changeset viewer.