[wp-trac] [WordPress Trac] #48283: Cron: 'Headers already sent' warning with `ALTERNATE_WP_CRON`

WordPress Trac noreply at wordpress.org
Thu Oct 10 22:50:17 UTC 2019


#48283: Cron: 'Headers already sent' warning with `ALTERNATE_WP_CRON`
--------------------------+---------------------
 Reporter:  dlh           |       Owner:  jorbin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.3
Component:  Cron API      |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by jorbin):

 * owner:  (none) => jorbin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46458" 46458]:
 {{{
 #!CommitTicketReference repository="" revision="46458"
 Cron: Prevent sending headers when using ALTERNATE_WP_CRON

 ALTERNATE_WP_CRON echos things which causes a "Headers already sent"
 warning. This adds a check to ensure headers haven't already been sent.

 Previously: [45560]

 See: #45560. Fixes #48283.
 Props dlh.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48283#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list