Skip to:
Content

BuddyPress.org

Changeset 2442


Ignore:
Timestamp:
01/25/2010 12:54:01 AM (15 years ago)
Author:
apeatling
Message:

Remove images from parent activity content output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r2441 r2442  
    441441        /* Remove the time since content */
    442442        $parent_activity->content = str_replace( '<span class="time-since">%s</span>', '', $parent_activity->content );
     443
     444        /* Remove images */
     445        $parent_activity->content = preg_replace('/<img[^>]*>/Ui', '', $parent_activity->content );
    443446
    444447        return apply_filters( 'bp_get_activity_parent_content', $parent_activity->content );
Note: See TracChangeset for help on using the changeset viewer.