[buddypress-trac] [BuddyPress] #5233: Allow to WordPress cron to use BuddyPress functions

buddypress-trac noreply at wordpress.org
Fri Nov 8 14:43:13 UTC 2013


#5233: Allow to WordPress cron to use BuddyPress functions
-------------------------+-----------------------------
 Reporter:  j.conti      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5233>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list