[wp-trac] [WordPress Trac] #64315: Running `_wp_cron()` on shutdown breaks `ALTERNATE_WP_CRON`
WordPress Trac
noreply at wordpress.org
Thu Nov 27 01:41:49 UTC 2025
#64315: Running `_wp_cron()` on shutdown breaks `ALTERNATE_WP_CRON`
--------------------------+--------------------------
Reporter: karl94 | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9
Component: Cron API | Version: trunk
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+--------------------------
Changes (by westonruter):
* status: assigned => accepted
Comment:
Thank you. I was able to reproduce this issue.
1. I added `define( 'ALTERNATE_WP_CRON', true );` to my `wp-config.php`.
2. I scheduled a post to publish in one minute.
3. I loaded the frontend after the scheduled publish time, and in the
footer (and in the error log) I saw:
> PHP Warning: Cannot modify header information - headers already sent
by (output started at /var/www/src/wp-includes/template-canvas.php:13) in
/var/www/src/wp-includes/pluggable.php on line 1534
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64315#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list