diff --git src/wp-cron.php src/wp-cron.php
index 1a944c216e..d3ab354eda 100644
|
|
ignore_user_abort( true ); |
20 | 20 | |
21 | 21 | /* Don't make the request block till we finish, if possible. */ |
22 | 22 | if ( function_exists( 'fastcgi_finish_request' ) && version_compare( phpversion(), '7.0.16', '>=' ) ) { |
23 | | header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); |
24 | | header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); |
| 23 | if ( ! headers_sent() ) { |
| 24 | header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); |
| 25 | header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); |
| 26 | } |
| 27 | |
25 | 28 | fastcgi_finish_request(); |
26 | 29 | } |
27 | 30 | |