Parsed: 126692

<?php

/**
 * A simple set of functions to check the WordPress.org Version Update service.
 *
 * @package WordPress
 * @since 2.3.0
 */

/* function wp_version_check() – Check WordPress version against the newest version. */

/* function wp_update_plugins() – Checks for available updates to plugins based on the latest versions hosted on WordPress.org. */

/* function wp_update_themes() – Checks for available updates to themes based on the latest versions hosted on WordPress.org. */

/* function wp_maybe_auto_update() – Performs WordPress automatic background updates. */

/* function wp_get_translation_updates() – Retrieves a list of all language updates available. */

/* function wp_get_update_data() – Collect counts and UI strings for available updates */

/* function _maybe_update_core() – Determines whether core should be updated. */
/* function _maybe_update_plugins() – Check the last time plugins were run before checking plugin versions. */

/* function _maybe_update_themes() – Check themes versions only after a duration of time. */

/* function wp_schedule_update_checks() – Schedule core, theme, and plugin update checks. */

/* function wp_clean_update_cache() – Clear existing update caches for plugins, themes, and core. */

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' )  <;