Changeset 11531 for trunk/src/bp-groups/bp-groups-template.php
- Timestamp:
- 04/15/2017 09:12:41 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r11530 r11531 1209 1209 * @since 1.0.0 1210 1210 * 1211 * @param object|bool $group Optional. The group being referenced. 1212 * Defaults to the group currently being 1213 * iterated on in the groups loop. 1214 */ 1215 function bp_group_description_excerpt( $group = false ) { 1216 echo bp_get_group_description_excerpt( $group ); 1211 * @param object|bool $group Optional. The group being referenced. 1212 * Defaults to the group currently being 1213 * iterated on in the groups loop. 1214 * @param int $length Optional. Length of returned string, including ellipsis. 1215 * Default: 225. 1216 */ 1217 function bp_group_description_excerpt( $group = false, $length = false ) { 1218 echo bp_get_group_description_excerpt( $group, $length ); 1217 1219 } 1218 1220 /** … … 1221 1223 * @since 1.0.0 1222 1224 * 1223 * @param object|bool $group Optional. The group being referenced. 1224 * Defaults to the group currently being 1225 * iterated on in the groups loop. 1225 * @param object|bool $group Optional. The group being referenced. 1226 * Defaults to the group currently being 1227 * iterated on in the groups loop. 1228 * @param int $length Optional. Length of returned string, including ellipsis. 1229 * Default: 225. 1226 1230 * @return string Excerpt. 1227 1231 */ 1228 function bp_get_group_description_excerpt( $group = false ) {1232 function bp_get_group_description_excerpt( $group = false, $length = false ) { 1229 1233 global $groups_template; 1230 1234 … … 1241 1245 * @param object $group Object for group whose description is made into an excerpt. 1242 1246 */ 1243 return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description ), $group );1247 return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description, $length ), $group ); 1244 1248 } 1245 1249
Note: See TracChangeset
for help on using the changeset viewer.