File file level phpdoc from jacobsantos. see #7037

git-svn-id: http://svn.automattic.com/wordpress/trunk@7991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-05-25 15:50:15 +00:00
parent 62784a594f
commit a6a1522a8d
19 changed files with 365 additions and 32 deletions

View File

@@ -1,6 +1,23 @@
<?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);
/**
* 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') )
@@ -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);
?>
?>