Cron fixes from mdawaffe. #2425

git-svn-id: https://develop.svn.wordpress.org/trunk@3636 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-03-08 05:51:42 +00:00
parent 91fbcd183e
commit 5fd8e9c8f5
2 changed files with 9 additions and 5 deletions
+6 -4
View File
@@ -49,7 +49,7 @@ function wp_unschedule_event($timestamp, $hook) {
}
function wp_clear_scheduled_hook($hook) {
while($timestamp = next_scheduled($hook))
while($timestamp = wp_next_scheduled($hook))
wp_unschedule_event($timestamp, $hook);
}
@@ -72,8 +72,10 @@ function spawn_cron() {
$argyle = @ fsockopen($parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01);
if ( $argyle )
fputs($argyle, "GET {$parts['path']}?time=" . time() . '&check='
. md5(DB_PASS . '187425') . " HTTP/1.0\r\nHost: {$_SERVER['HTTP_HOST']}\r\n\r\n");
fputs($argyle,
"GET {$parts['path']}?check=" . md5(DB_PASS . '187425') . " HTTP/1.0\r\n"
. "Host: {$_SERVER['HTTP_HOST']}\r\n\r\n"
);
}
function wp_cron() {
@@ -100,4 +102,4 @@ function wp_get_schedules() {
);
return array_merge(apply_filters('cron_schedules', array()), $schedules);
}
?>
?>