Skip to:
Content

BuddyPress.org

Changeset 10831


Ignore:
Timestamp:
05/31/2016 06:45:16 AM (8 years ago)
Author:
r-a-y
Message:

In bp_activity_create_summary(), use new arguments in bp_create_excerpt().

See r10830.

File:
1 edited

Legend:

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

    r10825 r10831  
    32273227
    32283228    // Generate a text excerpt for this activity item (and remove any oEmbeds URLs).
    3229     $summary = strip_shortcodes( html_entity_decode( strip_tags( $content ) ) );
    3230     $summary = bp_create_excerpt( preg_replace( '#^\s*(https?://[^\s"]+)\s*$#im', '', $summary ) );
     3229    $summary = bp_create_excerpt( html_entity_decode( $content ), 225, array(
     3230        'html' => false,
     3231        'filter_shortcodes' => true,
     3232        'strip_tags'        => true,
     3233        'remove_links'      => true
     3234    ) );
    32313235
    32323236    if ( $use_media_type === 'embeds' ) {
Note: See TracChangeset for help on using the changeset viewer.