Opened 7 years ago
Closed 7 years ago
#48283 closed defect (bug) (fixed)
Cron: 'Headers already sent' warning with `ALTERNATE_WP_CRON`
| Reported by: | dlh | Owned by: | jorbin |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Cron API | Version: | 5.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 46458: