Skip to:
Content

BuddyPress.org

Timestamp:
06/02/2024 05:52:42 PM (4 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/bp-activity-template.php

    r13844 r13897  
    32053205         * @param int    $user_id ID of the queried user.
    32063206         */
    3207         $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], bp_activity_get_excerpt_length() ) ) ), $user_id );
     3207        $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', ) ) ), $user_id );
    32083208
    32093209        $latest_update = sprintf(
     
    41964196
    41974197        $content = explode( '<span', $content );
    4198         $title   = strip_tags( ent2ncr( trim( convert_chars( $content[0] ) ) ) );
     4198        $title   = _tags( ent2ncr( trim( convert_chars( $content[0] ) ) ) );
    41994199
    42004200        if ( ':' === substr( $title, -1 ) ) {
     
    42034203
    42044204        if ( 'activity_update' === $activities_template->activity->type ) {
    4205             $title .= ': ' . strip_tags( ent2ncr( trim( convert_chars( bp_create_excerpt( $activities_template->activity->content, 70, array( 'ending' => " [&#133;]" ) ) ) ) ) );
     4205            $title .= ': ' . _tags( ent2ncr( trim( convert_chars( bp_create_excerpt( $activities_template->activity->content, 70, array( 'ending' => " [&#133;]" ) ) ) ) ) );
    42064206        }
    42074207
Note: See TracChangeset for help on using the changeset viewer.