PHP Class Jetpack_Autoupdate, jetpack

Hooks into WP_Automatic_Updater
ファイルを表示 Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
automatic_updates_complete ( $results ) On completion of an automatic update, let's store the results.
autoupdate_core ( $update, $item )
autoupdate_plugin ( $update, $item )
autoupdate_theme ( $update, $item )
autoupdate_translation ( $update, $item )
bump_stats ( )
get_log ( )
get_plugin_slug ( $plugin_file )
get_possible_failures ( )
init ( )

Private Methods

Method Description
__construct ( )
expect ( string $item, string $type ) Stores the an item identifier to the expected array.
get_successful_updates ( string $type ) : array Parses the autoupdate results generated by WP_Automatic_Updater and returns a simple array of successful items
log_items ( $items ) Iterates through expected items ( plugins or themes ) and compares them to actual results.

Method Details

automatic_updates_complete() public method

On completion of an automatic update, let's store the results.
public automatic_updates_complete ( $results )
$results - Sent by WP_Automatic_Updater after it completes an autoupdate action. Results may be empty.

autoupdate_core() public method

public autoupdate_core ( $update, $item )

autoupdate_plugin() public method

public autoupdate_plugin ( $update, $item )

autoupdate_theme() public method

public autoupdate_theme ( $update, $item )

autoupdate_translation() public method

public autoupdate_translation ( $update, $item )

bump_stats() public method

public bump_stats ( )

get_log() public method

public get_log ( )

get_plugin_slug() static public method

static public get_plugin_slug ( $plugin_file )

get_possible_failures() static public method

static public get_possible_failures ( )

init() static public method

static public init ( )