Changeset 12673 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 01/08/2010 08:49:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r12533 r12673 399 399 400 400 // Force refresh of plugin update information 401 delete_ transient('update_plugins');401 delete_site_transient('update_plugins'); 402 402 403 403 } … … 408 408 $this->upgrade_strings(); 409 409 410 $current = get_ transient( 'update_plugins' );410 $current = get_site_transient( 'update_plugins' ); 411 411 if ( !isset( $current->response[ $plugin ] ) ) { 412 412 $this->skin->set_result(false); … … 441 441 442 442 // Force refresh of plugin update information 443 delete_ transient('update_plugins');443 delete_site_transient('update_plugins'); 444 444 } 445 445 … … 450 450 $this->upgrade_strings(); 451 451 452 $current = get_ transient( 'update_plugins' );452 $current = get_site_transient( 'update_plugins' ); 453 453 454 454 add_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin'), 10, 4); … … 509 509 510 510 // Force refresh of plugin update information 511 delete_ transient('update_plugins');511 delete_site_transient('update_plugins'); 512 512 513 513 return $results; … … 628 628 629 629 // Force refresh of theme update information 630 delete_ transient('update_themes');630 delete_site_transient('update_themes'); 631 631 632 632 if ( empty($result['destination_name']) ) … … 642 642 643 643 // Is an update available? 644 $current = get_ transient( 'update_themes' );644 $current = get_site_transient( 'update_themes' ); 645 645 if ( !isset( $current->response[ $theme ] ) ) { 646 646 $this->skin->set_result(false); … … 672 672 673 673 // Force refresh of theme update information 674 delete_ transient('update_themes');674 delete_site_transient('update_themes'); 675 675 676 676 return true;
Note: See TracChangeset
for help on using the changeset viewer.