Plugin_Installer_Skin::hide_process_failed()

最后更新于:2021-11-25 20:36:26

Plugin_Installer_Skin::hide_process_failed( GC_Error$gc_error)

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

参数

$gc_error

(GC_Error) (Required) GC_Error object.

响应

(bool)

源文件

文件: gc-admin/includes/class-plugin-installer-skin.php

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

		return false;
	}