[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-admin/includes/ -> class-wp-automatic-updater.php (summary)

Upgrade API: WP_Automatic_Updater class

File Size: 1016 lines (36 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Automatic_Updater:: (9 methods):

Class: WP_Automatic_Updater  - X-Ref

Core class used for handling automatic background updates.

is_disabled()   X-Ref
Whether the entire automatic updater is disabled.

is_vcs_checkout( $context )   X-Ref
Check for version control checkouts.

Checks for Subversion, Git, Mercurial, and Bazaar. It recursively looks up the
filesystem to the top of the drive, erring on the side of detecting a VCS
checkout somewhere.

ABSPATH is always checked in addition to whatever $context is (which may be the
wp-content directory, for example). The underlying assumption is that if you are
using version control *anywhere*, then you should be making decisions for
how things get updated.

param: string $context The filesystem path to check, in addition to ABSPATH.

should_update( $type, $item, $context )   X-Ref
Tests to see if we can and should update a specific item.

param: string $type    The type of update being checked: 'core', 'theme',
param: object $item    The update offer.
param: string $context The filesystem context (a path) against which filesystem

send_core_update_notification_email( $item )   X-Ref
Notifies an administrator of a core update.

param: object $item The update offer.

update( $type, $item )   X-Ref
Update an item, if appropriate.

param: string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
param: object $item The update offer.
return: null|WP_Error

run()   X-Ref
Kicks off the background update process, looping through all pending updates.

after_core_update( $update_result )   X-Ref
If we tried to perform a core update, check if we should send an email,
and if we need to avoid processing future updates.

param: object $update_result The result of the core update. Includes the update offer and result.

send_email( $type, $core_update, $result = null )   X-Ref
Sends an email upon the completion or failure of a background core update.

param: string $type        The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
param: object $core_update The update offer that was attempted.
param: mixed  $result      Optional. The result for the core update. Can be WP_Error.

send_debug_email()   X-Ref
Prepares and sends an email of a full log of background update results, useful for debugging and geekery.

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1