Make WordPress Core


Ignore:
Timestamp:
05/06/2017 02:29:01 PM (9 years ago)
Author:
swissspidy
Message:

Cron API: Add a new wp_doing_cron() helper function.

This replaces DOING_CRON checks via the constant.

Props tfrommen.
Fixes #39591.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r39325 r40575  
    108108
    109109        $options = array(
    110                 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
     110                'timeout' => wp_doing_cron() ? 30 : 3,
    111111        );
    112112
Note: See TracChangeset for help on using the changeset viewer.