Automatic_Upgrader_Skin::request_filesystem_credentials( bool|WP_Error $error = false, string $context = '', bool $allow_relaxed_file_ownership = false )
Determines whether the upgrader needs FTP/SSH details in order to connect to the filesystem.
Description
See also
Parameters
- $error
-
(Optional) Whether the current request has failed to connect, or an error object.
Default value: false
- $context
-
(Optional) Full path to the directory that is tested for being writable.
Default value: ''
- $allow_relaxed_file_ownership
-
(Optional) Whether to allow Group/World writable.
Default value: false
Return
(bool) True on success, false on failure.
Source
File: wp-admin/includes/class-automatic-upgrader-skin.php
Changelog
Version | Description |
---|---|
4.6.0 | The $context parameter default changed from false to an empty string. |
3.7.0 | Introduced. |