[wp-trac] [WordPress Trac] #18099: cron error with ALTERNATE_WP_CRON set to true
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 13 12:21:25 UTC 2011
#18099: cron error with ALTERNATE_WP_CRON set to true
--------------------------+-----------------------------
Reporter: luis.ferro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron | Version: 3.2
Severity: blocker | Keywords:
--------------------------+-----------------------------
If you turn on ALTERNATE_WP_CRON on a stock WP 3.2.1 you will get an error
of undefined function wp_redirect() in cron.php.
This is due to the order of includes in wp-settings.php which is wrong in
this use-case.
An include on the top to the effect of:
require_once( ABSPATH . WPINC . '/pluggable.php' );
will sort it out (please be sure to either change the bottom require to
require_once, or remove it altogether).
Blocker, because it breaks functionality.
Tested on stock 3.2.1 with no plugin active.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18099>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list