Make WordPress Core


Ignore:
Timestamp:
01/30/2007 01:06:56 PM (18 years ago)
Author:
markjaquith
Message:

Prevent a missing wp-cron.php from causing an infinite loop. Props jan. fixes #3713

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cron.php

    r4362 r4834  
    9494
    9595function 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   
Note: See TracChangeset for help on using the changeset viewer.