Ticket #30369: 30369.patch
| File 30369.patch, 967 bytes (added by , 12 years ago) |
|---|
-
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 … … 662 673 add_action( 'wp_update_plugins', 'wp_update_plugins' ); 663 674 add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 ); 664 675 676 add_action( 'update_option_WPLANG', '_clear_update_transients' , 10, 0 ); 677 665 678 add_action( 'load-themes.php', 'wp_update_themes' ); 666 679 add_action( 'load-update.php', 'wp_update_themes' ); 667 680 add_action( 'load-update-core.php', 'wp_update_themes' );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)