Ticket #10349: 10439.diff
| File 10439.diff, 1.8 KB (added by , 16 years ago) |
|---|
-
wp-cron.php
35 35 if ( isset($keys[0]) && $keys[0] > $local_time ) 36 36 die(); 37 37 38 foreach ($crons as $timestamp => $cronhooks) {38 foreach ($crons as $timestamp => $cronhooks) { 39 39 if ( $timestamp > $local_time ) 40 40 break; 41 41 -
wp-includes/update.php
47 47 $url = "http://api.wordpress.org/core/version-check/1.3/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; 48 48 49 49 $options = array( 50 'timeout' => 3,50 'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, 51 51 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 52 52 ); 53 53 … … 146 146 $to_send = (object)compact('plugins', 'active'); 147 147 148 148 $options = array( 149 'timeout' => 3,149 'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, 150 150 'body' => array( 'plugins' => serialize( $to_send ) ), 151 151 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 152 152 ); … … 240 240 $current_theme->template = get_option( 'template' ); 241 241 242 242 $options = array( 243 'timeout' =>3,243 'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, 244 244 'body' => array( 'themes' => serialize( $themes ) ), 245 245 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 246 246 ); … … 306 306 if( isset( $current->last_checked ) && 43200 > ( time( ) - $current->last_checked ) ) 307 307 return; 308 308 309 wp_update_themes( );309 wp_update_themes(); 310 310 } 311 311 312 312 add_action( 'admin_init', '_maybe_update_core' );