[wp-trac] [WordPress Trac] #25175: WPMU schedule doesn't work with some functions

WordPress Trac noreply at wordpress.org
Thu Aug 29 05:51:00 UTC 2013


#25175: WPMU schedule doesn't work with some functions
--------------------------+------------------------------
 Reporter:  Looimaster    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Multisite


Comment:

 `wpmu_delete_user()` is only available in the admin: [source:tags/3.6/wp-
 admin/includes/ms.php#L132].

 `wp-cron.php`, however, always runs with front-end context.

 I'd suggest adding `require_once( ABSPATH . 'wp-admin/includes/ms.php' )`
 to `delete_old_users()`, it doesn't seem to have any dependencies at a
 glance.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25175#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list