} else {
delete_site_transient( 'update_plugins' );
}
- wp_clean_plugins_cache();
wp_clean_themes_cache();
delete_site_transient( 'update_core' );
}
add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );
-add_action('init', 'wp_schedule_update_checks');
+add_action( 'init', 'wp_schedule_update_checks' );