[buddypress-trac] [BuddyPress Trac] #5476: kses filter defined twice

buddypress-trac noreply at wordpress.org
Wed Mar 26 19:20:12 UTC 2014


#5476: kses filter defined twice
--------------------------+-----------------------------
 Reporter:  mpa4hu        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5476>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list