Make WordPress Core

Ticket #14381: wp-includes--update.php.diff

File wp-includes--update.php.diff, 854 bytes (added by josephscott, 14 years ago)
  • update.php

     
    215215        if ( ! is_object($current_theme) )
    216216                $current_theme = new stdClass;
    217217
     218        $current_theme->active_theme = get_option( 'template' );
     219
    218220        $new_option = new stdClass;
    219221        $new_option->last_checked = time( );
    220222        $timeout = 'load-themes.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
     
    255257        $current_theme->last_checked = time();
    256258        set_site_transient( 'update_themes', $current_theme );
    257259
    258         $current_theme->template = get_option( 'template' );
    259 
    260260        $options = array(
    261261                'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3),
    262262                'body'                  => array( 'themes' => serialize( $themes ) ),