From 61ce0809a7aa7eb4208e5858215b69c9e79e63ff Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 30 Jan 2007 13:06:56 +0000 Subject: [PATCH] Prevent a missing wp-cron.php from causing an infinite loop. Props jan. fixes #3713 git-svn-id: https://develop.svn.wordpress.org/trunk@4834 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cron.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 75742f8ca4..f770500290 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -93,6 +93,10 @@ function spawn_cron() { } function wp_cron() { + // Prevent infinite loops caused by lack of wp-cron.php + if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false ) + return; + $crons = _get_cron_array(); if ( !is_array($crons) )