Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/24/2011 07:18:57 PM (15 years ago)
Author:
boonebgorges
Message:

Cleans up use of bp_create_excerpt(). Fixes #3503. Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r4961 r5030  
    724724
    725725        $defaults = array(
    726             'length' => 45
     726            'length' => 225
    727727        );
    728728
     
    732732        $post = bp_forums_get_post( $forum_template->topic->topic_last_post_id );
    733733        $post = bp_create_excerpt( $post->post_text, $length );
    734         return apply_filters( 'bp_get_the_topic_latest_post_excerpt', $post );
     734
     735        return apply_filters( 'bp_get_the_topic_latest_post_excerpt', $post, $length );
    735736    }
    736737
    737738function bp_the_topic_time_since_last_post() {
    738     global $forum_template;
    739 
    740739    echo bp_get_the_topic_time_since_last_post();
    741740}
Note: See TracChangeset for help on using the changeset viewer.