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/plugin-install.php

    r11585 r12673  
    444444            $type = 'install';
    445445            //Check to see if this plugin is known to be installed, and has an update awaiting it.
    446             $update_plugins = get_transient('update_plugins');
     446            $update_plugins = get_site_transient('update_plugins');
    447447            if ( is_object( $update_plugins ) ) {
    448448                foreach ( (array)$update_plugins->response as $file => $plugin ) {
     
    465465                    } else {
    466466                        //If the above update check failed, Then that probably means that the update checker has out-of-date information, force a refresh
    467                         delete_transient('update_plugins');
     467                        delete_site_transient('update_plugins');
    468468                        $update_file = $api->slug . '/' . $key; //This code branch only deals with a plugin which is in a folder the same name as its slug, Doesnt support plugins which have 'non-standard' names
    469469                        $type = 'update_available';
Note: See TracChangeset for help on using the changeset viewer.