From 7733ed2ddcafc28a788c73c40fbde3d8fd87d77b Mon Sep 17 00:00:00 2001 From: Eric Lewis Date: Fri, 8 Jan 2016 23:54:26 +0000 Subject: [PATCH] Cron: Add the cron lock timestamp to the 'cron_request' filter arguments. Fixes #31307 Built from https://develop.svn.wordpress.org/trunk@36228 git-svn-id: http://core.svn.wordpress.org/trunk@36195 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cron.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index e47c70b4bc..f65d78e994 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -298,6 +298,7 @@ function spawn_cron( $gmt_time = 0 ) { * Filter the cron request arguments. * * @since 3.5.0 + * @since 4.5.0 $doing_wp_cron was added to the filter arguments. * * @param array $cron_request_array { * An array of cron request URL arguments. @@ -312,6 +313,7 @@ function spawn_cron( $gmt_time = 0 ) { * @type bool $sslverify Whether SSL should be verified for the request. Default false. * } * } + * @param string $doing_wp_cron The unix timestamp of the cron lock. */ $cron_request = apply_filters( 'cron_request', array( 'url' => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ), @@ -322,7 +324,7 @@ function spawn_cron( $gmt_time = 0 ) { /** This filter is documented in wp-includes/class-wp-http-streams.php */ 'sslverify' => apply_filters( 'https_local_ssl_verify', false ) ) - ) ); + ), $doing_wp_cron ); wp_remote_post( $cron_request['url'], $cron_request['args'] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 50f6a3908c..f5c21453ae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36227'; +$wp_version = '4.5-alpha-36228'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.