diff --git bp-activity/bp-activity-functions.php bp-activity/bp-activity-functions.php
index 519d004..dd68612 100644
|
|
function bp_activity_thumbnail_content_images( $content, $link = false ) { |
1283 | 1283 | global $post; |
1284 | 1284 | |
1285 | 1285 | preg_match_all( '/<img[^>]*>/Ui', $content, $matches ); |
1286 | | $content = preg_replace('/<img[^>]*>/Ui', '', $content ); |
1287 | | |
| 1286 | $content = preg_replace('|(\[caption(.*?)\])?<img[^>]*>(\[/caption\])?|', '', $content ); |
| 1287 | |
1288 | 1288 | if ( !empty( $matches ) && !empty( $matches[0] ) ) { |
1289 | 1289 | // Get the SRC value |
1290 | 1290 | preg_match( '/<img.*?(src\=[\'|"]{0,1}.*?[\'|"]{0,1})[\s|>]{1}/i', $matches[0][0], $src ); |