Skip to:
Content

BuddyPress.org

Changeset 3232 for trunk/bp-groups.php


Ignore:
Timestamp:
09/06/2010 04:24:57 PM (14 years ago)
Author:
apeatling
Message:

Merging 1.2 branch with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r2946 r3232  
    492492
    493493    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 
    497494        do_action( 'groups_screen_group_members', $bp->groups->current_group->id );
    498495        bp_core_load_template( apply_filters( 'groups_template_group_members', 'groups/single/home' ) );
     
    798795
    799796    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/' ) );
    804797
    805798        if ( !$bp->is_item_admin || 'public' == $bp->groups->current_group->status )
     
    16531646}
    16541647
    1655 function groups_get_total_member_count( $group_id ) {
    1656     return BP_Groups_Group::get_total_member_count( $group_id );
    1657 }
    1658 
    16591648/*** Group Fetching, Filtering & Searching  *************************************/
    16601649
     
    18141803    groups_update_groupmeta( $group_id, 'forum_id', $forum_id );
    18151804
    1816     do_action( 'groups_new_group_forum', $forum_id, $group_id );
     1805    do_action( 'groups_new_group_forum', $forum, $group_id );
    18171806}
    18181807
     
    24172406    do_action( 'groups_remove_data_for_user', $user_id );
    24182407}
    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' );
     2408add_action( 'wpmu_delete_user', 'groups_remove_data_for_user', 1 );
     2409add_action( 'delete_user', 'groups_remove_data_for_user', 1 );
     2410add_action( 'make_spam_user', 'groups_remove_data_for_user', 1 );
    24222411
    24232412
Note: See TracChangeset for help on using the changeset viewer.