Ticket #14381: wp-includes--update.php.diff
File wp-includes--update.php.diff, 854 bytes (added by , 14 years ago) |
---|
-
update.php
215 215 if ( ! is_object($current_theme) ) 216 216 $current_theme = new stdClass; 217 217 218 $current_theme->active_theme = get_option( 'template' ); 219 218 220 $new_option = new stdClass; 219 221 $new_option->last_checked = time( ); 220 222 $timeout = 'load-themes.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours … … 255 257 $current_theme->last_checked = time(); 256 258 set_site_transient( 'update_themes', $current_theme ); 257 259 258 $current_theme->template = get_option( 'template' );259 260 260 $options = array( 261 261 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 262 262 'body' => array( 'themes' => serialize( $themes ) ),