Determines whether the upgrader needs FTP/SSH details in order to connect to the filesystem.
Description
See also
Parameters
$error
bool|WP_Erroroptional- Whether the current request has failed to connect, or an error object.
Default:
false
$context
stringoptional- Full path to the directory that is tested for being writable.
Default:
''
$allow_relaxed_file_ownership
booloptional- Whether to allow Group/World writable.
Default:
false
Source
public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
if ( $context ) {
$this->options['context'] = $context;
}
/*
* TODO: Fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version.
* This will output a credentials form in event of failure. We don't want that, so just hide with a buffer.
*/
ob_start();
$result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
ob_end_clean();
return $result;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.