Skip to:
Content
Pages
Categories
Search
Top
Bottom

activity_allowedtags no longer working like before after Buddypress upgrade

  • Avatar of snowflakesonal
    snowflakesonal
    Participant

    @snowflakesonal

    I was using this piece of code to display some things in the Buddypress activity stream. It was all fine until I upgraded to version 1.9.2 yesterday.

    $activity_allowedtags['div']['style']['width'] = array();

    Earlier, <div class=”average” style=”width:80%”></div> was showing correctly in the stream. Since yesterday, all that shows is <div class=”average”></div>. The style and width tags are getting removed.

    I’d be grateful if someone can help me out with this. I’ve tried various combinations including $activity_allowedtags['div']['style'] = array(‘width’ => array()); with no results.

    I’m using WordPress version 3.8.1.

Viewing 1 replies (of 1 total)
  • Avatar of snowflakesonal
    snowflakesonal
    Participant

    @snowflakesonal

    Directly modifying bp_activity_filter_kses() function in bp-activity-filters.php with the following code isn’t helping either: style tag is still getting stripped from the activity stream. Before the last Buddypress upgrade, the same code was working.

    $activity_allowedtags['div'] = array();
    $activity_allowedtags['div']['style'] = array();
    $activity_allowedtags['div']['style']['width'] = array();
    $activity_allowedtags = apply_filters( ‘bp_activity_allowed_tags’, $activity_allowedtags );

Viewing 1 replies (of 1 total)

The topic ‘activity_allowedtags no longer working like before after Buddypress upgrade’ is closed to new replies.