Skip to:
Content

BuddyPress.org

Ticket #4051: bp_shortcode_exerpts_bug.patch

File bp_shortcode_exerpts_bug.patch, 767 bytes (added by magnus78, 13 years ago)

proposed fix

  • bp-activity/bp-activity-filters.php

     
    322322
    323323        // Run the text through the excerpt function. If it's too short, the original text will be
    324324        // returned.
    325         $excerpt        = bp_create_excerpt( $text, $excerpt_length, array( 'ending' => __( '…', 'buddypress' ) ) );
     325        $excerpt        = bp_create_excerpt( $text, $excerpt_length, array( 'ending' => __( '…', 'buddypress' ), 'filter_shortcodes' => FALSE ) );
    326326
    327327        // If the text returned by bp_create_excerpt() is different from the original text (ie it's
    328328        // been truncated), add the "Read More" link.