Skip to:
Content

BuddyPress.org

Changeset 5351


Ignore:
Timestamp:
11/24/2011 02:39:08 AM (13 years ago)
Author:
boonebgorges
Message:

Strips caption shortcode in blog post activity items. Fixes #3697

File:
1 edited

Legend:

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

    r5330 r5351  
    12891289
    12901290    preg_match_all( '/<img[^>]*>/Ui', $content, $matches );
    1291     $content = preg_replace('/<img[^>]*>/Ui', '', $content );
    1292 
     1291    $content = preg_replace('|(\[caption(.*?)\])?<img[^>]*>(\[/caption\])?|', '', $content );
     1292   
    12931293    if ( !empty( $matches ) && !empty( $matches[0] ) ) {
    12941294        // Get the SRC value
Note: See TracChangeset for help on using the changeset viewer.