Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 06:25:07 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Second pass at reverting members/core function & filter refactor. See #3158.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-actions.php

    r4602 r4606  
    2525 * @global object $bp Global BuddyPress settings object
    2626 */
    27 function bp_members_action_set_spammer_status() {
     27function bp_core_action_set_spammer_status() {
    2828    global $bp, $wpdb, $wp_version;
    2929
     
    7777            do_action( 'bp_make_ham_user',  $bp->displayed_user->id );
    7878
    79         do_action( 'bp_members_action_set_spammer_status', $bp->displayed_user->id, $is_spam );
     79        do_action( 'bp_core_action_set_spammer_status', $bp->displayed_user->id, $is_spam );
    8080        bp_core_redirect( wp_get_referer() );
    8181    }
    8282}
    83 add_action( 'bp_actions', 'bp_members_action_set_spammer_status' );
     83add_action( 'bp_actions', 'bp_core_action_set_spammer_status' );
    8484
    8585/**
     
    8989 * @global object $bp Global BuddyPress settings object
    9090 */
    91 function bp_members_action_delete_user() {
     91function bp_core_action_delete_user() {
    9292    global $bp;
    9393
     
    100100
    101101        $errors = false;
    102         do_action( 'bp_members_before_action_delete_user', $errors );
     102        do_action( 'bp_core_before_action_delete_user', $errors );
    103103
    104104        if ( bp_core_delete_account( $bp->displayed_user->id ) ) {
     
    109109        }
    110110
    111         do_action( 'bp_members_action_delete_user', $errors );
     111        do_action( 'bp_core_action_delete_user', $errors );
    112112
    113113        if ( $errors )
     
    117117    }
    118118}
    119 add_action( 'bp_actions', 'bp_members_action_delete_user' );
     119add_action( 'bp_actions', 'bp_core_action_delete_user' );
    120120
    121121/**
Note: See TracChangeset for help on using the changeset viewer.