Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24160, comment 22


Ignore:
Timestamp:
01/31/2021 09:35:15 PM (3 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24160, comment 22

    initial v1  
    22
    33* When `wp-cron.php` is accessed with a direct POST request, either as a result of `spawn_cron()` or as a result of a real server cron job requesting it, `wp-load.php` is included and then any pending cron events are iterated and run. This means actions such as `init` and `wp_loaded` have finished executing by the point where the cron events are run.
    4 * With `ALTERNATE_WP_CRON` in use, the `wp_cron` function that's hooked into `init` does an `include_once( 'wp-cron.php' )` which then iterates and runs pending cron events after flushing a redirect header to the client.
     4* With `ALTERNATE_WP_CRON` in use, the `wp_cron()` function that's hooked into `init` does an `include_once( 'wp-cron.php' )` which then iterates and runs pending cron events after flushing a redirect header to the client.
    55
    66This means with `ALTERNATE_WP_CRON` in use, cron events run within the `init` hook on priority 10. Without it in use, they run after the `wp_loaded` action has fired.