mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 23:24:34 +00:00
Cron API: Add a new wp_doing_cron() helper function.
This replaces `DOING_CRON` checks via the constant. Props tfrommen. Fixes #39591. git-svn-id: https://develop.svn.wordpress.org/trunk@40575 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -107,7 +107,7 @@ function get_core_checksums( $version, $locale ) {
|
||||
$url = set_url_scheme( $url, 'https' );
|
||||
|
||||
$options = array(
|
||||
'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
|
||||
'timeout' => wp_doing_cron() ? 30 : 3,
|
||||
);
|
||||
|
||||
$response = wp_remote_get( $url, $options );
|
||||
|
||||
Reference in New Issue
Block a user