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:
22
wp-cron.php
22
wp-cron.php
@@ -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);
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user