diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-06-13 17:21:00 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-06-13 17:21:00 +0000 |
commit | 12de05107e4c8b006bde6ee8916f34eb476d08da (patch) | |
tree | 123ee54ecd1f3f777373b7df54a4604012d43640 /wp-cron.php | |
parent | e51c7a9ca4bfdb45fa3ec7334bd33871e78c68b1 (diff) | |
download | wordpress-mu-12de05107e4c8b006bde6ee8916f34eb476d08da.tar.gz wordpress-mu-12de05107e4c8b006bde6ee8916f34eb476d08da.tar.xz wordpress-mu-12de05107e4c8b006bde6ee8916f34eb476d08da.zip |
WP Merge with revision 8075
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1328 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-cron.php')
-rw-r--r-- | wp-cron.php | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/wp-cron.php b/wp-cron.php index f60ac56..e8ac0d3 100644 --- a/wp-cron.php +++ b/wp-cron.php @@ -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) { |