Changeset 7222 for trunk/bp-activity/bp-activity-functions.php
- Timestamp:
- 06/18/2013 08:30:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r7193 r7222 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 $activity_args Optional. The args passed to the activity 1529 * creation function (eg bp_blogs_record_activity()) 1528 1530 * 1529 1531 * @uses esc_attr() … … 1532 1534 * @return string $content The content with images stripped and replaced with a single thumb. 1533 1535 */ 1534 function bp_activity_thumbnail_content_images( $content, $link = false ) {1536 function bp_activity_thumbnail_content_images( $content, $link = false, $args = false ) { 1535 1537 1536 1538 preg_match_all( '/<img[^>]*>/Ui', $content, $matches ); … … 1571 1573 } 1572 1574 1573 return apply_filters( 'bp_activity_thumbnail_content_images', $content, $matches );1575 return apply_filters( 'bp_activity_thumbnail_content_images', $content, $matches, $args ); 1574 1576 } 1575 1577
Note: See TracChangeset
for help on using the changeset viewer.