WordPress at Your Fingertips
function is not described

Plugin_Installer_Skin::hide_process_failed() public WP 5.5.0

Hides the process_failed error when updating a plugin by uploading a zip file.

{} It's a method of the class: Plugin_Installer_Skin{}

No Hooks.

Return

true|false.

Usage

$Plugin_Installer_Skin = new Plugin_Installer_Skin();
$Plugin_Installer_Skin->hide_process_failed( $wp_error );
$wp_error(WP_Error) (required)
WP_Error object.

Changelog

Since 5.5.0 Introduced.

Code of Plugin_Installer_Skin::hide_process_failed() WP 5.8.2

public function hide_process_failed( $wp_error ) {
	if (
		'upload' === $this->type &&
		'' === $this->overwrite &&
		$wp_error->get_error_code() === 'folder_exists'
	) {
		return true;
	}

	return false;
}