[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> update.php (summary)

A simple set of functions to check our version 1.0 update service.

File Size: 979 lines (30 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 wp-includes/version.php

Defines 11 functions

  wp_version_check()
  wp_update_plugins()
  wp_update_themes()
  wp_maybe_auto_update()
  wp_get_translation_updates()
  wp_get_update_data()
  _maybe_update_core()
  _maybe_update_plugins()
  _maybe_update_themes()
  wp_schedule_update_checks()
  wp_clean_update_cache()

Functions
Functions that are not part of a class:

wp_version_check( $extra_stats = array()   X-Ref
Check WordPress version against the newest version.

The WordPress version, PHP version, and locale is sent.

Checks against the WordPress server at api.wordpress.org. Will only check
if WordPress isn't installing.

param: array $extra_stats Extra statistics to report to the WordPress.org API.
param: bool  $force_check Whether to bypass the transient cache and force a fresh update check. Defaults to false, true if $extra_stats is set.
since: 2.3.0

wp_update_plugins( $extra_stats = array()   X-Ref
Checks for available updates to plugins based on the latest versions hosted on WordPress.org.

Despite its name this function does not actually perform any updates, it only checks for available updates.

A list of all plugins installed is sent to WP, along with the site locale.

Checks against the WordPress server at api.wordpress.org. Will only check
if WordPress isn't installing.

param: array $extra_stats Extra statistics to report to the WordPress.org API.
since: 2.3.0

wp_update_themes( $extra_stats = array()   X-Ref
Checks for available updates to themes based on the latest versions hosted on WordPress.org.

Despite its name this function does not actually perform any updates, it only checks for available updates.

A list of all themes installed is sent to WP, along with the site locale.

Checks against the WordPress server at api.wordpress.org. Will only check
if WordPress isn't installing.

param: array $extra_stats Extra statistics to report to the WordPress.org API.
since: 2.7.0

wp_maybe_auto_update()   X-Ref
Performs WordPress automatic background updates.

Updates WordPress core plus any plugins and themes that have automatic updates enabled.

since: 3.7.0

wp_get_translation_updates()   X-Ref
Retrieves a list of all language updates available.

return: object[] Array of translation objects that have available updates.
since: 3.7.0

wp_get_update_data()   X-Ref
Collect counts and UI strings for available updates

return: array
since: 3.3.0

_maybe_update_core()   X-Ref
Determines whether core should be updated.

since: 2.8.0

_maybe_update_plugins()   X-Ref
Check the last time plugins were run before checking plugin versions.

This might have been backported to WordPress 2.6.1 for performance reasons.
This is used for the wp-admin to check only so often instead of every page
load.

since: 2.7.0

_maybe_update_themes()   X-Ref
Check themes versions only after a duration of time.

This is for performance reasons to make sure that on the theme version
checker is not run on every page load.

since: 2.7.0

wp_schedule_update_checks()   X-Ref
Schedule core, theme, and plugin update checks.

since: 3.1.0

wp_clean_update_cache()   X-Ref
Clear existing update caches for plugins, themes, and core.

since: 4.1.0



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1