Changeset 3232 for trunk/bp-groups.php
- Timestamp:
- 09/06/2010 04:24:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2946 r3232 492 492 493 493 if ( $bp->is_single_item ) { 494 /* Refresh the group member count meta */495 groups_update_groupmeta( $bp->groups->current_group->id, 'total_member_count', groups_get_total_member_count( $bp->groups->current_group->id ) );496 497 494 do_action( 'groups_screen_group_members', $bp->groups->current_group->id ); 498 495 bp_core_load_template( apply_filters( 'groups_template_group_members', 'groups/single/home' ) ); … … 798 795 799 796 if ( $bp->current_component == $bp->groups->slug && 'membership-requests' == $bp->action_variables[0] ) { 800 801 /* Ask for a login if the user is coming here via an email notification */802 if ( !is_user_logged_in() )803 bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . $bp->root_domain . '/' . $bp->current_component . '/' . $bp->current_item . '/admin/membership-requests/' ) );804 797 805 798 if ( !$bp->is_item_admin || 'public' == $bp->groups->current_group->status ) … … 1653 1646 } 1654 1647 1655 function groups_get_total_member_count( $group_id ) {1656 return BP_Groups_Group::get_total_member_count( $group_id );1657 }1658 1659 1648 /*** Group Fetching, Filtering & Searching *************************************/ 1660 1649 … … 1814 1803 groups_update_groupmeta( $group_id, 'forum_id', $forum_id ); 1815 1804 1816 do_action( 'groups_new_group_forum', $forum _id, $group_id );1805 do_action( 'groups_new_group_forum', $forum, $group_id ); 1817 1806 } 1818 1807 … … 2417 2406 do_action( 'groups_remove_data_for_user', $user_id ); 2418 2407 } 2419 add_action( 'wpmu_delete_user', 'groups_remove_data_for_user' );2420 add_action( 'delete_user', 'groups_remove_data_for_user' );2421 add_action( 'make_spam_user', 'groups_remove_data_for_user' );2408 add_action( 'wpmu_delete_user', 'groups_remove_data_for_user', 1 ); 2409 add_action( 'delete_user', 'groups_remove_data_for_user', 1 ); 2410 add_action( 'make_spam_user', 'groups_remove_data_for_user', 1 ); 2422 2411 2423 2412
Note: See TracChangeset
for help on using the changeset viewer.