Opened 13 years ago
Closed 13 years ago
#5233 closed enhancement (fixed)
Allow to WordPress cron to use BuddyPress functions
| Reported by: | j.conti | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.9 |
| Component: | Core | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed. We should not be doing caps checks in the business functions.