Ticket #30369: 30369.2.patch
| File 30369.2.patch, 1.8 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/includes/class-wp-upgrader.php
1370 1370 remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); 1371 1371 1372 1372 if ( $parsed_args['clear_update_cache'] ) { 1373 wp_clean_themes_cache( true ); 1374 wp_clean_plugins_cache( true ); 1375 delete_site_transient( 'update_core' ); 1373 _clear_update_transients(); 1376 1374 } 1377 1375 1378 1376 return $results; … … 2200 2198 } 2201 2199 2202 2200 // Clear existing caches 2203 wp_clean_plugins_cache(); 2204 wp_clean_themes_cache(); 2205 delete_site_transient( 'update_core' ); 2201 _clear_update_transients(); 2206 2202 2207 2203 wp_version_check(); // check for Core updates 2208 2204 wp_update_themes(); // Check for Theme updates -
src/wp-includes/update.php
648 648 } 649 649 } 650 650 651 /** 652 * Clear existing update caches for plugins, themes, and core. 653 * 654 * @since 4.1.0 655 */ 656 function _clear_update_transients() { 657 wp_clean_plugins_cache(); 658 wp_clean_themes_cache(); 659 delete_site_transient( 'update_core' ); 660 } 661 651 662 if ( ( ! is_main_site() && ! is_network_admin() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) 652 663 return; 653 664 … … 669 680 add_action( 'wp_update_themes', 'wp_update_themes' ); 670 681 add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 ); 671 682 683 add_action( 'update_option_WPLANG', '_clear_update_transients' , 10, 0 ); 684 672 685 add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' ); 673 686 674 687 add_action('init', 'wp_schedule_update_checks');
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)