WPINC_update.php Notes - WordPress-Thinstall/wordpress-develop GitHub Wiki

interface UpdaterInterface {
    function wp_version_check( $extra_stats = array(), $force_check = false );
    function wp_update_plugins( $extra_stats = array() );
    function wp_update_themes( $extra_stats = array() );
    function wp_maybe_auto_update();
    function wp_get_translation_updates();
    function wp_get_update_data();
    function _maybe_update_core();
    function _maybe_update_plugins();
    function _maybe_update_themes();
    function wp_schedule_update_checks();
    function wp_clean_update_cache();
}

File also performs a check and runs actions

if ( ( ! is_main_site() && ! is_network_admin() ) || wp_doing_ajax() ) {
	return;
}

add_action( 'admin_init', '_maybe_update_core' );
add_action( 'wp_version_check', 'wp_version_check' );

add_action( 'load-plugins.php', 'wp_update_plugins' );
add_action( 'load-update.php', 'wp_update_plugins' );
add_action( 'load-update-core.php', 'wp_update_plugins' );
add_action( 'admin_init', '_maybe_update_plugins' );
add_action( 'wp_update_plugins', 'wp_update_plugins' );

add_action( 'load-themes.php', 'wp_update_themes' );
add_action( 'load-update.php', 'wp_update_themes' );
add_action( 'load-update-core.php', 'wp_update_themes' );
add_action( 'admin_init', '_maybe_update_themes' );
add_action( 'wp_update_themes', 'wp_update_themes' );

add_action( 'update_option_WPLANG', 'wp_clean_update_cache' , 10, 0 );

add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );

add_action( 'init', 'wp_schedule_update_checks' );