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
This commit is contained in:
parent
4d4e6b5c7b
commit
61ce0809a7
@ -93,6 +93,10 @@ function spawn_cron() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function wp_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();
|
$crons = _get_cron_array();
|
||||||
|
|
||||||
if ( !is_array($crons) )
|
if ( !is_array($crons) )
|
||||||
|
Loading…
Reference in New Issue
Block a user