mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Prevent a missing wp-cron.php from causing an infinite loop. Props jan. fixes #3713
git-svn-id: http://svn.automattic.com/wordpress/trunk@4834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9bc0cc241e
commit
b4671adb74
@ -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