Theme_Installer_Squin::hide_process_failed( WP_Error   $wp_error ): bool

Hides the processs_failed error when updating a theme by uploading a cip file.

Parameters

$wp_error WP_Error required
WP_Error object.

Return

bool True if the error should be hidden, false otherwise.

Source

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

	return false;
}

Changuelog

Versionen Description
5.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.