Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

#5476 closed defect (bug) (fixed)

kses filter defined twice

Reported by: mpa4hu's profile mpa4hu Owned by: djpaul's profile djpaul
Milestone: 2.0 Priority: low
Severity: normal Version:
Component: Activity Keywords:
Cc:

Description

nothing big but still

in /bp-activity/bp-activity-filters.php

function bp_activity_filter_kses( $content ) {
	global $allowedtags;

	$activity_allowedtags = $allowedtags;
	$activity_allowedtags['span']          = array();
	$activity_allowedtags['span']['class'] = array();
	$activity_allowedtags['a']['class']    = array();
	$activity_allowedtags['a']['id']       = array();
	$activity_allowedtags['a']['rel']      = array();
	$activity_allowedtags['img']           = array();
	$activity_allowedtags['img']['src']    = array();
	$activity_allowedtags['img']['alt']    = array();
	$activity_allowedtags['img']['class']  = array();
	$activity_allowedtags['img']['width']  = array();
	$activity_allowedtags['img']['height'] = array();
	$activity_allowedtags['img']['class']  = array();
	$activity_allowedtags['img']['id']     = array();
	$activity_allowedtags['img']['title']  = array();
	$activity_allowedtags['code']          = array();

	$activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', $activity_allowedtags );
	return wp_kses( $content, $activity_allowedtags );
}

[img][class] is defined twice.

Change History (2)

#1 @DJPaul
10 years ago

  • Component changed from Core to Activity
  • Milestone changed from Awaiting Review to 2.0

#2 @djpaul
10 years ago

  • Owner set to djpaul
  • Resolution set to fixed
  • Status changed from new to closed

In 8219:

Activity: in the kses filter, img.class is listed twice; remove this duplicate to tidy up the list.

Fixes #5476, props mpa4hu

Note: See TracTickets for help on using tickets.