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-xprofile/classes/class-bp-xprofile-field-type-url.php

    r13806 r13897  
    188188     */
    189189    public static function display_filter( $field_value, $field_id = '' ) {
    190         $link      = strip_tags( $field_value );
     190        $link      = wp_strip_all_tags( $field_value );
    191191        $no_scheme = preg_replace( '#^https?://#', '', rtrim( $link, '/' ) );
    192192        $url_text  = str_replace( $link, $no_scheme, $field_value );
Note: See TracChangeset for help on using the changeset viewer.