Skip to content

Commit 61ce080

Browse files
committed
Prevent a missing wp-cron.php from causing an infinite loop. Props jan. fixes WordPress#3713
git-svn-id: https://develop.svn.wordpress.org/trunk@4834 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4d4e6b5 commit 61ce080

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wp-includes/cron.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ function spawn_cron() {
9393
}
9494

9595
function wp_cron() {
96+
// Prevent infinite loops caused by lack of wp-cron.php
97+
if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false )
98+
return;
99+
96100
$crons = _get_cron_array();
97101

98102
if ( !is_array($crons) )

0 commit comments

Comments
 (0)