Make WordPress Core

Ticket #31307: 31307.3.diff

File 31307.3.diff, 1.0 KB (added by ericlewis, 9 years ago)
  • src/wp-includes/cron.php

     
    298298         * Filter the cron request arguments.
    299299         *
    300300         * @since 3.5.0
     301         * @since 4.5.0 $doing_wp_cron was added to the filter arguments.
    301302         *
    302303         * @param array $cron_request_array {
    303304         *     An array of cron request URL arguments.
     
    312313         *         @type bool $sslverify Whether SSL should be verified for the request. Default false.
    313314         *     }
    314315         * }
     316         * @param string $doing_wp_cron The unix timestamp of the cron lock.
    315317         */
    316318        $cron_request = apply_filters( 'cron_request', array(
    317319                'url'  => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ),
     
    322324                        /** This filter is documented in wp-includes/class-wp-http-streams.php */
    323325                        'sslverify' => apply_filters( 'https_local_ssl_verify', false )
    324326                )
    325         ) );
     327        ), $doing_wp_cron );
    326328
    327329        wp_remote_post( $cron_request['url'], $cron_request['args'] );
    328330}