Make WordPress Core


Ignore:
Timestamp:
08/16/2009 04:59:38 AM (17 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.