Make WordPress Core

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

File wp-includes--update.php.diff, 786 bytes (added by josephscott, 16 years ago)
  • wp-includes/update.php

     
    208208        $current_theme->last_checked = time();
    209209        set_transient( 'update_themes', $current_theme );
    210210
     211        $current_theme->template = get_option( 'template' );
     212
    211213        $themes = array( );
    212         $themes['current_theme'] = $current_theme;
     214        $themes['current_theme'] = (array) $current_theme;
    213215        foreach( (array) $installed_themes as $theme_title => $theme ) {
    214216                $themes[$theme['Template']] = array( );
    215217
     
    308310if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') )
    309311        wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
    310312
    311 ?>
    312  No newline at end of file
     313?>