Skip to:
Content

BuddyPress.org


Ignore:
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-members/bp-members-functions.php

    r13894 r13897  
    515515    return apply_filters( 'bp_core_get_user_displayname', get_the_author_meta( 'display_name', $user_id ), $user_id );
    516516}
    517 add_filter( 'bp_core_get_user_displayname', 'strip_tags', 1 );
     517add_filter( 'bp_core_get_user_displayname', 'wp_strip_all_tags', 1 );
    518518add_filter( 'bp_core_get_user_displayname', 'trim' );
    519519add_filter( 'bp_core_get_user_displayname', 'stripslashes' );
Note: See TracChangeset for help on using the changeset viewer.