# poll-maker/6.3.5/includes/admin/class-poll-maker-skin.php

Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls, version 6.3.5. 28 lines.

- Page: https://pluginprobe.com/plugins/poll-maker/6.3.5/code/includes/admin/class-poll-maker-skin.php
- Raw: https://pluginprobe.com/plugins/poll-maker/6.3.5/raw/includes/admin/class-poll-maker-skin.php
- Modified: 2026-04-30T10:31:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/poll-maker/6.3.5/code/includes/admin/class-poll-maker-skin.php#L10-L20`.

```php
<?php

use PollMaker\Helpers\Poll_Maker_Plugin_Silent_Upgrader_Skin;

/**
 * Skin for on-the-fly addon installations.
 *
 * @since 1.0.0
 * @since 1.3.9 Extend Advanced_Related_Posts_Plugin_Silent_Upgrader_Skin and clean up the class.
 */
class Poll_Maker_Install_Skin extends Poll_Maker_Plugin_Silent_Upgrader_Skin {

	/**
	 * Instead of outputting HTML for errors, json_encode the errors and send them
	 * back to the Ajax script for processing.
	 *
	 * @since 1.0.0
	 *
	 * @param array $errors Array of errors with the install process.
	 */
	public function error( $errors ) {

		if ( ! empty( $errors ) ) {
			wp_send_json_error( $errors );
		}
	}
}

```
