[buddypress-trac] [BuddyPress] #5189: bp_core_process_spammer_status don't work if I call it directly from a plugin

buddypress-trac noreply at wordpress.org
Mon Oct 7 13:09:39 UTC 2013


#5189: bp_core_process_spammer_status don't work if I call it directly from a
plugin
-------------------------------+------------------------------
 Reporter:  j.conti            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Core               |     Version:  1.8.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by boonebgorges):

 * keywords:   => reporter-feedback


Comment:

 It looks to me like the problem is hook you've chosen for your spam status
 function. You are hooked to 'bp_core_action_set_spammer_status'
 http://plugins.trac.wordpress.org/browser/wangguard/tags/1.5.10/wangguard-
 admin.php#L847. This hook only fires when you mark a user as spam from the
 *front end*. It looks like this behavior might have changed in BP 1.6; see
 the inline comment at http://buddypress.trac.wordpress.org/browser/trunk
 /bp-members/bp-members-actions.php#L58.

 In any case, I think it should fix the problem if you move to the
 'bp_core_process_spammer_status' hook, which runs *anytime* a user is
 marked as spam. Check it out at:
 http://buddypress.trac.wordpress.org/browser/trunk/bp-members/bp-members-
 functions.php#L615 Could you have a look and see what you find?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5189#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list