root/tags/release-1.0/wp-cron.php

Revision 797, 0.7 kB (checked in by donncha, 2 years ago)

WP Merge - needs testing.

Line 
1 <?php
2 ignore_user_abort(true);
3 define('DOING_CRON', TRUE);
4 require_once('wp-config.php');
5
6 if ( $_GET['check'] != md5(DB_PASS . '187425') )
7     exit;
8
9 $crons = _get_cron_array();
10 $keys = array_keys($crons);
11 if (!is_array($crons) || $keys[0] > time())
12     return;
13 foreach ($crons as $timestamp => $cronhooks) {
14     if ($timestamp > time()) break;
15     foreach ($cronhooks as $hook => $keys) {
16         foreach ($keys as $key => $args) {
17              do_action_ref_array($hook, $args['args']);
18             $schedule = $args['schedule'];
19             if ($schedule != false) {
20                 $new_args = array($timestamp, $schedule, $hook, $args['args']);
21                 call_user_func_array('wp_reschedule_event', $new_args);
22             }
23             wp_unschedule_event($timestamp, $hook, $args['args']);
24         }
25     }
26 }
27 ?>
28
Note: See TracBrowser for help on using the browser.