Opened 11 years ago
Closed 11 years ago
#5233 closed enhancement (fixed)
Allow to WordPress cron to use BuddyPress functions
Reported by: | j.conti | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
Hi,
I have some problems for use a BuddyPress function with WordPress Cron, because that function block it.
The function bp_core_process_spammer_status
http://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-members/bp-members-functions.php#L541
has hardcoded
if ( !is_super_admin() || bp_is_my_profile() ) return;
So when my plugin want to use this function (for mark the user as spammer and clean all activity), it is killed because it not Super Admin.
I think can be interesting to enhance the permission check for allow to WordPress cron to use BuddyPress functions.
Confirmed. We should not be doing caps checks in the business functions.