Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/29/2010 03:22:44 PM (13 years ago)
Author:
boonebgorges
Message:

Changes bp_create_excerpt() so that excerpts are generated using character counts rather than word counts. Modifies excerpt_length throughout BP to account for the change. Fixes #1222

File:
1 edited

Legend:

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

    r3600 r3610  
    863863            return false;
    864864
    865         $latest_update = '"' . apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 40 ) ) ) ) . '"';
     865        $latest_update = '"' . apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 180 ) ) ) ) . '"';
    866866        $latest_update .= ' &middot; <a href="' . $bp->root_domain . '/' . BP_ACTIVITY_SLUG . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>';
    867867
     
    11021102
    11031103        if ( 'activity_update' == $activities_template->activity->type )
    1104             $title .= ': ' . strip_tags( bp_create_excerpt( $activities_template->activity->content, 15 ) );
     1104            $title .= ': ' . strip_tags( bp_create_excerpt( $activities_template->activity->content, 70 ) );
    11051105
    11061106        return apply_filters( 'bp_get_activity_feed_item_title', $title );
Note: See TracChangeset for help on using the changeset viewer.