Changeset 4606 for trunk/bp-members/bp-members-actions.php
- Timestamp:
- 07/04/2011 06:25:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-actions.php
r4602 r4606 25 25 * @global object $bp Global BuddyPress settings object 26 26 */ 27 function bp_ members_action_set_spammer_status() {27 function bp_core_action_set_spammer_status() { 28 28 global $bp, $wpdb, $wp_version; 29 29 … … 77 77 do_action( 'bp_make_ham_user', $bp->displayed_user->id ); 78 78 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 ); 80 80 bp_core_redirect( wp_get_referer() ); 81 81 } 82 82 } 83 add_action( 'bp_actions', 'bp_ members_action_set_spammer_status' );83 add_action( 'bp_actions', 'bp_core_action_set_spammer_status' ); 84 84 85 85 /** … … 89 89 * @global object $bp Global BuddyPress settings object 90 90 */ 91 function bp_ members_action_delete_user() {91 function bp_core_action_delete_user() { 92 92 global $bp; 93 93 … … 100 100 101 101 $errors = false; 102 do_action( 'bp_ members_before_action_delete_user', $errors );102 do_action( 'bp_core_before_action_delete_user', $errors ); 103 103 104 104 if ( bp_core_delete_account( $bp->displayed_user->id ) ) { … … 109 109 } 110 110 111 do_action( 'bp_ members_action_delete_user', $errors );111 do_action( 'bp_core_action_delete_user', $errors ); 112 112 113 113 if ( $errors ) … … 117 117 } 118 118 } 119 add_action( 'bp_actions', 'bp_ members_action_delete_user' );119 add_action( 'bp_actions', 'bp_core_action_delete_user' ); 120 120 121 121 /**
Note: See TracChangeset
for help on using the changeset viewer.