Determines whether the upgrader needs FTP/SSH details in order to connect to the filesystem.
$errorbool|WP_Erroroptional
Default:false
$contextstringoptional
Default:''
$allow_relaxed_file_ownershipbooloptional
Default:false
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;
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/automatic_upgrader_skin/request_filesystem_credentials