WordPress.org

Make WordPress Core

Changeset 4834


Ignore:
Timestamp:
01/30/07 13:06:56 (8 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.