Changeset 12673 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 01/08/2010 08:49:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r11585 r12673 444 444 $type = 'install'; 445 445 //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'); 447 447 if ( is_object( $update_plugins ) ) { 448 448 foreach ( (array)$update_plugins->response as $file => $plugin ) { … … 465 465 } else { 466 466 //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'); 468 468 $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 469 469 $type = 'update_available';
Note: See TracChangeset
for help on using the changeset viewer.