Ticket #3713: wp-cron-prevent-infinite-loop.php
File wp-cron-prevent-infinite-loop.php, 421 bytes (added by , 18 years ago) |
---|
Line | |
---|---|
1 | Index: wp-includes/cron.php |
2 | =================================================================== |
3 | --- wp-includes/cron.php (revision 4827) |
4 | +++ wp-includes/cron.php (working copy) |
5 | @@ -93,6 +93,10 @@ |
6 | } |
7 | |
8 | function wp_cron() { |
9 | + // Prevent infinite loops caused by lack of wp-cron.php |
10 | + if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false ) |
11 | + return; |
12 | + |
13 | $crons = _get_cron_array(); |
14 | |
15 | if ( !is_array($crons) ) |