Changeset 7865
- Timestamp:
- 02/13/2014 02:22:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r7829 r7865 620 620 } 621 621 622 /** 623 * Output an excerpt of the group description. 624 * 625 * @param object $group Optional. The group being referenced. Defaults to the 626 * group currently being iterated on in the groups loop. 627 */ 622 628 function bp_group_description_excerpt( $group = false ) { 623 629 echo bp_get_group_description_excerpt( $group ); 624 630 } 631 /** 632 * Get an excerpt of a group description. 633 * 634 * @param object $group Optional. The group being referenced. Defaults 635 * to the group currently being iterated on in the groups loop. 636 * @return string Excerpt. 637 */ 625 638 function bp_get_group_description_excerpt( $group = false ) { 626 639 global $groups_template; 627 640 628 if ( empty( $group ) ) 629 $group =& $groups_template->group; 630 631 return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description ) ); 641 if ( empty( $group ) ) { 642 $group =& $groups_template->group; 643 } 644 645 return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description ), $group ); 632 646 } 633 647
Note: See TracChangeset
for help on using the changeset viewer.