diff --git bp-activity/bp-activity-functions.php bp-activity/bp-activity-functions.php
index cb23192..2d4faa8 100644
|
|
|
function bp_activity_hide_user_activity( $user_id ) { |
| 1525 | 1525 | * |
| 1526 | 1526 | * @param string $content The content to work with |
| 1527 | 1527 | * @param string $link Optional. The URL that the image should link to |
| | 1528 | * @param array $args The activity request arguments |
| 1528 | 1529 | * |
| 1529 | 1530 | * @uses esc_attr() |
| 1530 | 1531 | * @uses apply_filters() To call the 'bp_activity_thumbnail_content_images' hook |
| 1531 | 1532 | * |
| 1532 | 1533 | * @return string $content The content with images stripped and replaced with a single thumb. |
| 1533 | 1534 | */ |
| 1534 | | function bp_activity_thumbnail_content_images( $content, $link = false ) { |
| | 1535 | function bp_activity_thumbnail_content_images( $content, $link = false, $args ) { |
| 1535 | 1536 | |
| 1536 | 1537 | preg_match_all( '/<img[^>]*>/Ui', $content, $matches ); |
| 1537 | 1538 | |
| … |
… |
function bp_activity_thumbnail_content_images( $content, $link = false ) { |
| 1570 | 1571 | } |
| 1571 | 1572 | } |
| 1572 | 1573 | |
| 1573 | | return apply_filters( 'bp_activity_thumbnail_content_images', $content, $matches ); |
| | 1574 | return apply_filters( 'bp_activity_thumbnail_content_images', $content, $matches, $args ); |
| 1574 | 1575 | } |
| 1575 | 1576 | |
| 1576 | 1577 | /** |
diff --git bp-blogs/bp-blogs-activity.php bp-blogs/bp-blogs-activity.php
index 46f5d19..f3004b8 100644
|
|
|
function bp_blogs_record_activity( $args = '' ) { |
| 73 | 73 | |
| 74 | 74 | // Remove large images and replace them with just one image thumbnail |
| 75 | 75 | if ( !empty( $content ) ) |
| 76 | | $content = bp_activity_thumbnail_content_images( $content, $primary_link ); |
| | 76 | $content = bp_activity_thumbnail_content_images( $content, $primary_link, $r ); |
| 77 | 77 | |
| 78 | 78 | if ( !empty( $action ) ) |
| 79 | 79 | $action = apply_filters( 'bp_blogs_record_activity_action', $action ); |