Changeset 911 for trunk/bp-core.php
- Timestamp:
- 01/23/2009 08:04:13 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bp-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r907 r911 763 763 * @return str The excerpt text 764 764 */ 765 function bp_create_excerpt( $text, $excerpt_length = 55 ) { // Fakes an excerpt if needed765 function bp_create_excerpt( $text, $excerpt_length = 55, $filter_shortcodes = true ) { // Fakes an excerpt if needed 766 766 $text = str_replace(']]>', ']]>', $text); 767 767 $text = strip_tags($text); 768 $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text ); 768 769 if ( $filter_shortcodes ) 770 $text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text ); 769 771 770 772 $words = explode(' ', $text, $excerpt_length + 1); … … 1273 1275 add_action( 'bp_core_render_notice', 'bp_core_clear_cache' ); 1274 1276 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 1275 1280 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)