Changeset 167

Show
Ignore:
Timestamp:
10/29/08 04:30:25 (8 months ago)
Author:
sambauers
Message:

Stop parse_url errors in wp_cron(), fixes #BP984

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/includes/functions.wp-cron.php

    r150 r167  
    184184function wp_cron() { 
    185185        // Prevent infinite loops caused by cron page requesting itself 
    186         $request_uri = parse_url($_SERVER['REQUEST_URI']); 
    187186        $cron_uri = parse_url(BP_Options::get('cron_uri')); 
    188          
    189         if ( $request_uri['host'] == $cron_uri['host'] && $request_uri['path'] == $cron_uri['path']
     187 
     188        if ( strpos($_SERVER['REQUEST_URI'], $cron_uri['path'] ) !== false
    190189                return; 
    191190