Changeset 4306
- Timestamp:
- 04/29/2011 10:54:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-actions.php
r4137 r4306 55 55 // Update the blog status 56 56 update_blog_status( $details->userblog_id, 'spam', $is_spam ); 57 58 // Fire the standard multisite hook59 do_action( 'make_spam_blog', $details->userblog_id );60 57 } 61 58 62 59 // Finally, mark this user as a spammer 63 60 if ( is_multisite() ) 64 $wpdb->update( $wpdb->users, array( 'spam' => $is_spam ), array( 'ID' => $bp->displayed_user->id ));61 update_user_status( $bp->displayed_user->id, 'spam', 1 ); 65 62 66 63 $wpdb->update( $wpdb->users, array( 'user_status' => $is_spam ), array( 'ID' => $bp->displayed_user->id ) ); … … 75 72 bp_activity_hide_user_activity( $bp->displayed_user->id ); 76 73 77 // We need a special hook for is_spam so that components can 78 // delete data at spam time 74 // We need a special hook for is_spam so that components can delete data at spam time 79 75 if ( $is_spam ) 80 76 do_action( 'bp_make_spam_user', $bp->displayed_user->id ); 77 else 78 do_action( 'bp_make_ham_user', $bp->displayed_user->id ); 81 79 82 80 do_action( 'bp_members_action_set_spammer_status', $bp->displayed_user->id, $is_spam ); 83 84 81 bp_core_redirect( wp_get_referer() ); 85 82 }
Note: See TracChangeset
for help on using the changeset viewer.