Make WordPress Core


Ignore:
Timestamp:
01/08/2010 08:49:55 PM (15 years ago)
Author:
ryan
Message:

Convert update_themes, update_plugins, update_core, and dismissed_update_core into site transients/plugins. Remove no longer need compat code.

File:
1 edited

Legend:

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

    r12533 r12673  
    399399
    400400        // Force refresh of plugin update information
    401         delete_transient('update_plugins');
     401        delete_site_transient('update_plugins');
    402402
    403403    }
     
    408408        $this->upgrade_strings();
    409409
    410         $current = get_transient( 'update_plugins' );
     410        $current = get_site_transient( 'update_plugins' );
    411411        if ( !isset( $current->response[ $plugin ] ) ) {
    412412            $this->skin->set_result(false);
     
    441441
    442442        // Force refresh of plugin update information
    443         delete_transient('update_plugins');
     443        delete_site_transient('update_plugins');
    444444    }
    445445
     
    450450        $this->upgrade_strings();
    451451
    452         $current = get_transient( 'update_plugins' );
     452        $current = get_site_transient( 'update_plugins' );
    453453
    454454        add_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin'), 10, 4);
     
    509509
    510510        // Force refresh of plugin update information
    511         delete_transient('update_plugins');
     511        delete_site_transient('update_plugins');
    512512
    513513        return $results;
     
    628628
    629629        // Force refresh of theme update information
    630         delete_transient('update_themes');
     630        delete_site_transient('update_themes');
    631631
    632632        if ( empty($result['destination_name']) )
     
    642642
    643643        // Is an update available?
    644         $current = get_transient( 'update_themes' );
     644        $current = get_site_transient( 'update_themes' );
    645645        if ( !isset( $current->response[ $theme ] ) ) {
    646646            $this->skin->set_result(false);
     
    672672
    673673        // Force refresh of theme update information
    674         delete_transient('update_themes');
     674        delete_site_transient('update_themes');
    675675
    676676        return true;
Note: See TracChangeset for help on using the changeset viewer.