WordPress.org

Make WordPress Core

Changeset 10649


Ignore:
Timestamp:
02/25/2009 11:18:42 PM (11 years ago)
Author:
ryan
Message:

Use get_transient() for update_themes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update.php

    r10515 r10649  
    288288
    289289    // Is an update available?
    290     $current = get_option( 'update_themes' );
     290    $current = get_transient( 'update_themes' );
    291291    if ( !isset( $current->response[ $theme ] ) )
    292292        return new WP_Error('up_to_date', __('The theme is at the latest version.'));
     
    389389
    390390    // Force refresh of plugin update information
    391     delete_option('update_themes');
     391    delete_transient('update_themes');
    392392
    393393    /*if( empty($filelist) )
Note: See TracChangeset for help on using the changeset viewer.