WordPress.org

Make WordPress Core

Changeset 11826


Ignore:
Timestamp:
08/16/09 04:59:38 (6 years ago)
Author:
azaozz
Message:

Increase timeout on cron-based requests when checking for upgrades, props dd32, fixes #10349

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-cron.php

    r10521 r11826  
    3636    die(); 
    3737 
    38 foreach ($crons as $timestamp  => $cronhooks) { 
     38foreach ($crons as $timestamp => $cronhooks) { 
    3939    if ( $timestamp > $local_time ) 
    4040        break; 
  • trunk/wp-includes/update.php

    r11714 r11826  
    4848 
    4949    $options = array( 
    50         'timeout' => 3, 
     50        'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, 
    5151        'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 
    5252    ); 
     
    147147 
    148148    $options = array( 
    149         'timeout' => 3, 
     149        'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, 
    150150        'body' => array( 'plugins' => serialize( $to_send ) ), 
    151151        'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 
     
    241241 
    242242    $options = array( 
    243         'timeout'       => 3, 
     243        'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, 
    244244        'body'          => array( 'themes' => serialize( $themes ) ), 
    245245        'user-agent'    => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 
     
    307307        return; 
    308308 
    309     wp_update_themes( ); 
     309    wp_update_themes(); 
    310310} 
    311311 
Note: See TracChangeset for help on using the changeset viewer.