Changeset 2158 for trunk/bp-groups.php
- Timestamp:
- 11/30/2009 12:27:52 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2147 r2158 575 575 } 576 576 577 578 577 function groups_screen_group_home() { 579 578 global $bp; 580 579 581 580 if ( $bp->is_single_item ) { 582 583 581 if ( isset($_GET['new']) ) { 584 582 // Delete group request notifications for the user … … 975 973 } 976 974 } 975 976 function groups_screen_group_activity_permalink() { 977 global $bp; 978 979 if ( !$bp->is_single_item || $bp->current_component != $bp->groups->slug || $bp->current_action != $bp->activity->slug ) 980 return false; 981 982 if ( '' != locate_template( array( 'groups/single/home.php' ), false ) ) 983 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) ); 984 else 985 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/group-home' ) ); 986 } 987 add_action( 'wp', 'groups_screen_group_activity_permalink', 3 ); 977 988 978 989 function groups_screen_group_admin() { … … 1607 1618 */ 1608 1619 1620 function groups_get_group( $args = '' ) { 1621 $defaults = array( 1622 'group_id' => false, 1623 'load_users' => false 1624 ); 1625 1626 $args = wp_parse_args( $args, $defaults ); 1627 extract( $args, EXTR_SKIP ); 1628 1629 return apply_filters( 'groups_get_group', new BP_Groups_Group( $group_id, true, $load_users ) ); 1630 } 1631 1609 1632 /*** Group Creation, Editing & Deletion *****************************************/ 1610 1633
Note: See TracChangeset
for help on using the changeset viewer.