Skip to:
Content

BuddyPress.org


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

    r13844 r13897  
    10131013    add_filter( 'bp_get_member_name', 'wp_filter_kses' );
    10141014    add_filter( 'bp_get_member_name', 'stripslashes'   );
    1015     add_filter( 'bp_get_member_name', 'strip_tags'    );
     1015    add_filter( 'bp_get_member_name', 'wp_strip_all_tags' );
    10161016    add_filter( 'bp_get_member_name', 'esc_html'       );
    10171017
     
    11491149
    11501150        if ( ! empty( $update['content'] ) ) {
    1151             $excerpt           = trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) );
    1152             $update['content'] = trim( strip_tags( $update['content'] ) );
     1151            $excerpt           = wp_strip_all_tags( bp_create_excerpt( $update['content'], $length ) );
     1152            $update['content'] = wp_strip_all_tags( $update['content'] );
    11531153            $update['excerpt'] = $excerpt;
    11541154        } else {
Note: See TracChangeset for help on using the changeset viewer.