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-feed.php

    r13816 r13897  
    201201    protected function setup_properties() {
    202202        $this->id               = sanitize_title( $this->id );
    203         $this->title            = strip_tags( $this->title );
     203        $this->title            = wp_strip_all_tags( $this->title );
    204204        $this->link             = esc_url_raw( $this->link );
    205         $this->description      = strip_tags( $this->description );
     205        $this->description      = wp_strip_all_tags( $this->description );
    206206        $this->ttl              = (int) $this->ttl;
    207         $this->update_period    = strip_tags( $this->update_period );
     207        $this->update_period    = wp_strip_all_tags( $this->update_period );
    208208        $this->update_frequency = (int) $this->update_frequency;
    209209        $this->activity_args    = bp_parse_args(
Note: See TracChangeset for help on using the changeset viewer.