diff --git a/wp-cron.php b/wp-cron.php index d704ceaf84..d487770f71 100644 --- a/wp-cron.php +++ b/wp-cron.php @@ -18,6 +18,11 @@ ignore_user_abort( true ); +/* Don't make the request block till we finish, if possible. */ +if ( function_exists( 'fastcgi_finish_request' ) && version_compare( phpversion(), '7.0.16', '>=' ) ) { + fastcgi_finish_request(); +} + if ( ! empty( $_POST ) || defined( 'DOING_AJAX' ) || defined( 'DOING_CRON' ) ) { die(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1375c5364f..bc51d886db 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44487'; +$wp_version = '5.1-alpha-44488'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.