diff --git a/wp-cron.php b/wp-cron.php index 32f8d3ead6..ceaf5d1e65 100644 --- a/wp-cron.php +++ b/wp-cron.php @@ -18,14 +18,16 @@ ignore_user_abort( true ); +if ( ! headers_sent() ) { + header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); + header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); +} + /* Don't make the request block till we finish, if possible. */ if ( PHP_VERSION_ID >= 70016 && function_exists( 'fastcgi_finish_request' ) ) { - if ( ! headers_sent() ) { - header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); - header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); - } - fastcgi_finish_request(); +} elseif ( function_exists( 'litespeed_finish_request' ) ) { + litespeed_finish_request(); } if ( ! empty( $_POST ) || defined( 'DOING_AJAX' ) || defined( 'DOING_CRON' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 9ce914465b..50561f6eb9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53652'; +$wp_version = '6.1-alpha-53653'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.