Skip to:
Content

BuddyPress.org

Changeset 911 for trunk/bp-core.php


Ignore:
Timestamp:
01/23/2009 08:04:13 PM (18 years ago)
Author:
apeatling
Message:

Fixes #385

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r907 r911  
    763763 * @return str The excerpt text
    764764 */
    765 function bp_create_excerpt( $text, $excerpt_length = 55 ) { // Fakes an excerpt if needed
     765function bp_create_excerpt( $text, $excerpt_length = 55, $filter_shortcodes = true ) { // Fakes an excerpt if needed
    766766        $text = str_replace(']]>', ']]>', $text);
    767767        $text = strip_tags($text);
    768         $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text );
     768       
     769        if ( $filter_shortcodes )
     770                $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text );
    769771       
    770772        $words = explode(' ', $text, $excerpt_length + 1);
     
    12731275add_action( 'bp_core_render_notice', 'bp_core_clear_cache' );
    12741276
     1277// Remove the catch non existent blogs hook so WPMU doesn't think BuddyPress pages are non existing blogs
     1278//remove_action( 'plugins_loaded', 'catch_nonexistant_blogs' );
     1279
    12751280?>
Note: See TracChangeset for help on using the changeset viewer.