Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 05:52:42 PM (12 months ago)
Author:
espellcaste
Message:

Use wp_strip_all_tags instead of strip_tags.

Props imath
Closes https://github.com/buddypress/buddypress/pull/306
See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-activity.php

    r13890 r13897  
    18811881        for ( $i = 0, $count = count( $activities ); $i < $count; ++$i ) {
    18821882            $title                            = explode( '<span', $activities[$i]['content'] );
    1883             $activity_feed[$i]['title']       = trim( strip_tags( $title[0] ) );
     1883            $activity_feed[$i]['title']       = wp_strip_all_tags( $title[0] );
    18841884            $activity_feed[$i]['link']        = $activities[$i]['primary_link'];
    18851885            $activity_feed[$i]['description'] = @sprintf( $activities[$i]['content'], '' );
Note: See TracChangeset for help on using the changeset viewer.