Make WordPress Core

Ticket #18738: 18738-wp_cron-fastcgi_finish.3.diff

File 18738-wp_cron-fastcgi_finish.3.diff, 506 bytes (added by tellyworth, 6 years ago)

Drop the constant and use a PHP version check instead

  • src/wp-cron.php

     
    1818
    1919ignore_user_abort( true );
    2020
     21/* Don't make the request block till we finish, if possible. */
     22if ( function_exists( 'fastcgi_finish_request' ) && version_compare( phpversion(), '7.0.16', '>=' ) )
     23        fastcgi_finish_request();
     24
    2125if ( ! empty( $_POST ) || defined( 'DOING_AJAX' ) || defined( 'DOING_CRON' ) ) {
    2226        die();
    2327}