root/tags/1_0-rc2/wp-cron.php

Revision 591, 0.6 kB (checked in by donncha, 2 years ago)

Moved everything in wp-inst down a directory.
Uses's Ryan Boren's htaccess rules and mods
If you're upgrading, try this on a test server first!

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_option('cron');
10 if (!is_array($crons) || array_shift(array_keys($crons)) > time())
11     return;
12 foreach ($crons as $timestamp => $cronhooks) {
13     if ($timestamp > time()) break;
14     foreach($cronhooks as $hook => $args) {
15         wp_unschedule_event($timestamp, $hook);
16         do_action($hook, $args['args']);
17         $schedule = $args['schedule'];
18         if($schedule != false) {
19             $args = array_merge( array($timestamp, $schedule, $hook), $args['args']);
20             call_user_func_array('wp_reschedule_event', $args);
21         }
22     }
23 }
24 ?>
25
Note: See TracBrowser for help on using the browser.