Ticket #10884: 10884.diff
| File 10884.diff, 1.6 KB (added by , 15 years ago) |
|---|
-
wp-admin/includes/class-wp-upgrader.php
402 402 403 403 // Force refresh of plugin update information 404 404 delete_site_transient('update_plugins'); 405 405 wp_cache_delete('plugins', 'plugins'); 406 wp_update_plugins(); 406 407 } 407 408 408 409 function upgrade($plugin) { … … 445 446 446 447 // Force refresh of plugin update information 447 448 delete_site_transient('update_plugins'); 449 wp_cache_delete('plugins', 'plugins'); 450 wp_update_plugins(); 448 451 } 449 452 450 453 function bulk_upgrade($plugins) { … … 526 529 527 530 // Force refresh of plugin update information 528 531 delete_site_transient('update_plugins'); 532 wp_cache_delete('plugins', 'plugins'); 533 wp_update_plugins(); 529 534 530 535 return $results; 531 536 } … … 645 650 646 651 // Force refresh of theme update information 647 652 delete_site_transient('update_themes'); 653 $GLOBALS['wp_themes'] = null; // break get_themes()'s cache 654 wp_update_themes(); 648 655 649 656 if ( empty($result['destination_name']) ) 650 657 return false; … … 690 697 691 698 // Force refresh of theme update information 692 699 delete_site_transient('update_themes'); 700 $GLOBALS['wp_themes'] = null; // break get_themes()'s cache 701 wp_update_themes(); 693 702 694 703 return true; 695 704 } … … 777 786 778 787 // Force refresh of theme update information 779 788 delete_site_transient('update_themes'); 789 $GLOBALS['wp_themes'] = null; // break get_themes()'s cache 790 wp_update_themes(); 780 791 781 792 return $results; 782 793 }