Opened 5 years ago
Closed 5 years ago
#48283 closed defect (bug) (fixed)
Cron: 'Headers already sent' warning with `ALTERNATE_WP_CRON`
Reported by: | dlh | Owned by: | jorbin |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 5.3 |
Component: | Cron API | Keywords: | has-patch |
Focuses: | Cc: |
Description
After [45560], a "Headers already sent" warning is generated when ALTERNATE_WP_CRON
is enabled. The cause seems to be that spawn_cron()
adds headers via wp_redirect()
and then sends headers before loading wp-cron.php
.
The attached patch would add a headers_sent()
check before the two caching headers.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 46458: