Changeset 30870 for branches/4.1/src/wp-includes/update.php
- Timestamp:
- 12/15/2014 07:34:16 PM (11 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-includes/update.php
r30696 r30870 656 656 * @since 4.1.0 657 657 */ 658 function _wp_clear_update_cache() { 658 function wp_clean_update_cache() { 659 if ( function_exists( 'wp_clean_plugins_cache' ) ) { 660 wp_clean_plugins_cache(); 661 } else { 662 delete_site_transient( 'update_plugins' ); 663 } 659 664 wp_clean_plugins_cache(); 660 665 wp_clean_themes_cache(); … … 684 689 add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 ); 685 690 686 add_action( 'update_option_WPLANG', ' _wp_clear_update_cache' , 10, 0 );691 add_action( 'update_option_WPLANG', 'wp_clean_update_cache' , 10, 0 ); 687 692 688 693 add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );
Note: See TracChangeset
for help on using the changeset viewer.