[ Index ]

PHP Cross Reference of WordPress




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

Upgrader API: Automatic_Upgrader_Skin class

File Size: 135 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Automatic_Upgrader_Skin:: (5 methods):

Class: Automatic_Upgrader_Skin  - X-Ref

Upgrader Skin for Automatic WordPress Upgrades.

This skin is designed to be used when no output is intended, all output
is captured and stored for the caller to process and log/email/discard.

request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false )   X-Ref
Determines whether the upgrader needs FTP/SSH details in order to connect
to the filesystem.

return: bool True on success, false on failure.
since: 3.7.0
since: 4.6.0 The `$context` parameter default changed from `false` to an empty string.
param: bool|WP_Error $error                        Optional. Whether the current request has failed to connect,
param: string        $context                      Optional. Full path to the directory that is tested
param: bool          $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.

get_upgrade_messages()   X-Ref
Retrieves the upgrade messages.

return: string[] Messages during an upgrade.
since: 3.7.0

feedback( $feedback, ...$args )   X-Ref
Stores a message about the upgrade.

since: 3.7.0
since: 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support.
param: string|array|WP_Error $feedback Message data.
param: mixed                 ...$args  Optional text replacements.

header()   X-Ref
Creates a new output buffer.

since: 3.7.0

footer()   X-Ref
Retrieves the buffered content, deletes the buffer, and processes the output.

since: 3.7.0

Generated: Mon Jan 24 01:00:08 2022 Cross-referenced by PHPXref 0.7.1