Support » Fixing WordPress » wp_redirect with ALTERNATE_WP_CRON

  • Hi everyone,

    Of notice, 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).

    Cheers,
    🙂

  • The topic ‘wp_redirect with ALTERNATE_WP_CRON’ is closed to new replies.