Changeset 4356
- Timestamp:
- 05/14/2011 12:08:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r4301 r4356 475 475 * @param $text str The text to create the excerpt from 476 476 * @param $excerpt_length Minimum excerpt length, in characters 477 * @param $filter_shortcodes When true, apparentshortcodes (in square brackets) will be stripped477 * @param $filter_shortcodes When true, registered shortcodes (in square brackets) will be stripped 478 478 * @param $append_text Be sure to include a leading space 479 479 * @return str The excerpt text … … 487 487 488 488 if ( $filter_shortcodes ) 489 $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '',$text );489 $text = strip_shortcodes( $text ); 490 490 491 491 preg_match( "%\s*((?:<[^>]+>)+\S*)\s*|\s+%s", $text, $matches, PREG_OFFSET_CAPTURE, $excerpt_length );
Note: See TracChangeset
for help on using the changeset viewer.