]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-cron.php
Wordpress 2.6.2-scripts
[autoinstalls/wordpress.git] / wp-cron.php
index f60ac56e46829a499487e012bc7b146902dd53a2..efd66c68b67ba590a27112ce9c5da2dac15ff89d 100644 (file)
@@ -1,7 +1,24 @@
 <?php
+/**
+ * WordPress Cron Implementation for hosts, which do not offer CRON or for which
+ * the user has not setup a CRON job pointing to this file.
+ *
+ * The HTTP request to this file will not slow down the visitor who happens to
+ * visit when the cron job is needed to run.
+ *
+ * @package WordPress
+ */
+
 ignore_user_abort(true);
-define('DOING_CRON', TRUE);
-require_once('./wp-config.php');
+
+/**
+ * Tell WordPress we are doing the CRON task.
+ *
+ * @var bool
+ */
+define('DOING_CRON', true);
+/** Setup WordPress environment */
+require_once('./wp-load.php');
 
 if ( $_GET['check'] != wp_hash('187425') )
        exit;
@@ -15,6 +32,7 @@ $crons = _get_cron_array();
 $keys = array_keys($crons);
 if (!is_array($crons) || $keys[0] > time())
        return;
+
 foreach ($crons as $timestamp => $cronhooks) {
        if ($timestamp > time()) break;
        foreach ($cronhooks as $hook => $keys) {
@@ -32,4 +50,4 @@ foreach ($crons as $timestamp => $cronhooks) {
 
 update_option('doing_cron', 0);
 
-?>
+?>
\ No newline at end of file