Changeset 11213 for trunk/src/bp-groups/bp-groups-functions.php
- Timestamp:
- 10/26/2016 03:13:24 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r11197 r11213 44 44 */ 45 45 function groups_get_group( $group_id ) { 46 // Backward compatibilty. 47 if ( is_array( $group_id ) && isset( $group_id['group_id'] ) ) { 48 $group_id = $group_id['group_id']; 46 /* 47 * Backward compatibilty. 48 * Old-style arguments take the form of an array or a query string. 49 */ 50 if ( ! is_numeric( $group_id ) ) { 51 $r = wp_parse_args( $group_id, array( 52 'group_id' => false, 53 'load_users' => false, 54 'populate_extras' => false, 55 ) ); 56 57 $group_id = $r['group_id']; 49 58 } 50 59
Note: See TracChangeset
for help on using the changeset viewer.