Skip to:
Content

BuddyPress.org

Changeset 6742


Ignore:
Timestamp:
01/23/2013 08:44:38 PM (14 years ago)
Author:
boonebgorges
Message:

More regex fixes in bp_activity_thumbnail_content_images()

Fixes #4488

File:
1 edited

Legend:

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

    r6723 r6742  
    15081508
    15091509        preg_match_all( '/<img[^>]*>/Ui', $content, $matches );
    1510         $content = preg_replace('|(\[caption(.*?)\])?<img[^>]*>.*?(?:\[\/caption\])|', '', $content );
     1510        $content = preg_replace('|(\[caption(.*?)\])?<img[^>]*>([^\[\[]*\[\/caption\])?|', '', $content );
    15111511
    15121512        if ( !empty( $matches ) && !empty( $matches[0] ) ) {
Note: See TracChangeset for help on using the changeset viewer.