Changeset 12379
- Timestamp:
- 04/25/2019 02:38:26 PM (7 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/bp-activity/bp-activity-filters.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/bp-activity/bp-activity-filters.php
r12281 r12379 16 16 add_filter( 'bp_get_activity_action', 'bp_activity_filter_kses', 1 ); 17 17 add_filter( 'bp_get_activity_content_body', 'bp_activity_filter_kses', 1 ); 18 add_filter( 'bp_get_activity_content', 'bp_activity_filter_kses', 1 );19 18 add_filter( 'bp_get_activity_parent_content', 'bp_activity_filter_kses', 1 ); 20 19 add_filter( 'bp_get_activity_latest_update', 'bp_activity_filter_kses', 1 ); … … 206 205 */ 207 206 function bp_activity_filter_kses( $content ) { 207 $activity_allowedtags = bp_get_allowedtags(); 208 209 // Don't allow 'class' or 'id'. 210 foreach ( $activity_allowedtags as $el => &$atts ) { 211 unset( $atts['class'] ); 212 unset( $atts['id'] ); 213 } 214 208 215 /** 209 216 * Filters the allowed HTML tags for BuddyPress Activity content. … … 213 220 * @param array $value Array of allowed HTML tags and attributes. 214 221 */ 215 $activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', bp_get_allowedtags());222 $activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', $activity_allowedtags ); 216 223 return wp_kses( $content, $activity_allowedtags ); 217 224 }
Note: See TracChangeset
for help on using the changeset viewer.