Changeset 30554 for trunk/src/wp-includes/update.php
- Timestamp:
- 11/24/2014 10:49:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r30384 r30554 649 649 } 650 650 651 if ( ( ! is_main_site() && ! is_network_admin() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) 651 /** 652 * Clear existing update caches for plugins, themes, and core. 653 * 654 * @since 4.1.0 655 */ 656 function _wp_clear_update_cache() { 657 wp_clean_plugins_cache(); 658 wp_clean_themes_cache(); 659 delete_site_transient( 'update_core' ); 660 } 661 662 if ( ( ! is_main_site() && ! is_network_admin() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 652 663 return; 664 } 653 665 654 666 add_action( 'admin_init', '_maybe_update_core' ); … … 670 682 add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 ); 671 683 684 add_action( 'update_option_WPLANG', '_wp_clear_update_cache' , 10, 0 ); 685 672 686 add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' ); 673 687
Note: See TracChangeset
for help on using the changeset viewer.