[ Index ]

WordPress Source Cross Reference

title

Body

[close]

/ -> wp-cron.php (source)

   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          do_action($hook, $args['args']);
  16          $schedule = $args['schedule'];
  17          if($schedule != false) {
  18              $args = array_merge( array($timestamp, $schedule, $hook), $args['args']);
  19              call_user_func_array('wp_reschedule_event', $args);
  20          }
  21          wp_unschedule_event($timestamp, $hook);
  22      }
  23  }
  24  ?>

Your comment here...

Name: Location:
Comments:


List: Classes | Functions | Variables | Constants | Tables

Generated: Sat Jul 15 11:57:04 2006 Courtesy of Taragana