Skip to:
Content

BuddyPress.org

Changeset 6150


Ignore:
Timestamp:
06/29/2012 06:54:15 PM (12 years ago)
Author:
djpaul
Message:

Correct typo in action name in groups_promote_member(). Fixes #4316

Location:
trunk/bp-groups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-cache.php

    r6100 r6150  
    9797add_action( 'groups_ban_member',                 'bp_core_clear_cache' );
    9898add_action( 'groups_demote_member',              'bp_core_clear_cache' );
    99 add_action( 'groups_premote_member',             'bp_core_clear_cache' );
     99add_action( 'groups_promote_member',             'bp_core_clear_cache' );
    100100add_action( 'groups_membership_rejected',        'bp_core_clear_cache' );
    101101add_action( 'groups_membership_accepted',        'bp_core_clear_cache' );
  • trunk/bp-groups/bp-groups-functions.php

    r6100 r6150  
    727727    $member = new BP_Groups_Member( $user_id, $group_id );
    728728
     729    // Don't use this action. It's deprecated as of BuddyPress 1.6.
    729730    do_action( 'groups_premote_member', $group_id, $user_id, $status );
     731
     732    // Use this action instead.
     733    do_action( 'groups_promote_member', $group_id, $user_id, $status );
    730734
    731735    return $member->promote( $status );
Note: See TracChangeset for help on using the changeset viewer.