WordPress.org

Make WordPress Core

Changeset 4850


Ignore:
Timestamp:
01/31/2007 06:00:08 AM (11 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
  • branches/2.1/wp-includes/cron.php

    r4362 r4850  
    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.