wp_update_themes( $theme_stats ); // Check for theme updates.
$plugin_stats = array
();
if ( isset( $this->update_results
['plugin'
] ) ) { foreach ( $this->update_results
['plugin'
] as $upgrade ) { $plugin_stats[ $upgrade->item->plugin
] =
( true ===
$upgrade->result
);
} } wp_update_plugins( $plugin_stats ); // Check for plugin updates.
// Finally, process any new translations.
$language_updates =
wp_get_translation_updates();
if ( $language_updates ) { foreach ( $language_updates as $update ) { $this->
update( 'translation',
$update );
} // Clear existing caches.
wp_clean_update_cache();
wp_version_check(); // Check for core updates.
wp_update_themes(); // Check for theme updates.
wp_update_plugins(); // Check for plugin updates.