Changes in trunk/wp-cron.php [10521:8927]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-cron.php
r10521 r8927 12 12 ignore_user_abort(true); 13 13 14 if ( !empty($_POST) || defined('DOING_AJAX') || defined('DOING_CRON') )15 die();16 17 14 /** 18 15 * Tell WordPress we are doing the CRON task. … … 21 18 */ 22 19 define('DOING_CRON', true); 20 /** Setup WordPress environment */ 21 require_once('./wp-load.php'); 23 22 24 if ( !defined('ABSPATH') ) { 25 /** Setup WordPress environment */ 26 require_once('./wp-load.php'); 23 if ( $_GET['check'] != wp_hash('187425') ) 24 exit; 25 26 $local_time = time(); 27 28 $crons = _get_cron_array(); 29 $keys = array_keys( $crons ); 30 31 if (!is_array($crons) || $keys[0] > $local_time) { 32 update_option('doing_cron', 0); 33 return; 27 34 } 28 35 29 if ( false === $crons = _get_cron_array() ) 30 die(); 36 foreach ($crons as $timestamp => $cronhooks) { 31 37 32 $keys = array_keys( $crons );33 $local_time = time();34 35 if ( isset($keys[0]) && $keys[0] > $local_time )36 die();37 38 foreach ($crons as $timestamp => $cronhooks) {39 38 if ( $timestamp > $local_time ) 40 39 break; … … 58 57 } 59 58 59 update_option('doing_cron', 0); 60 60 61 die(); 62 63 ?>
Note: See TracChangeset
for help on using the changeset viewer.