PluginProbe
Chartify – WordPress Chart Plugin / 3.0.5
Chartify – WordPress Chart Plugin v3.0.5
3.8.0 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 trunk 1.0.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 All 83 releases
chart-builder / includes / admin / class-chart-builder-skin.php

class-chart-builder-skin.php in Chartify – WordPress Chart Plugin 3.0.5, at includes/admin/class-chart-builder-skin.php

28 lines 660 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use ChartBuilder\Helpers\Chart_Builder_Plugin_Silent_Upgrader_Skin;
4
5 /**
6 * Skin for on-the-fly addon installations.
7 *
8 * @since 1.0.0
9 * @since 6.4.0.4 Extend Chart_Builder_Plugin_Silent_Upgrader_Skin and clean up the class.
10 */
11 class Chart_Builder_Install_Skin extends Chart_Builder_Plugin_Silent_Upgrader_Skin {
12
13 /**
14 * Instead of outputting HTML for errors, json_encode the errors and send them
15 * back to the Ajax script for processing.
16 *
17 * @since 1.0.0
18 *
19 * @param array $errors Array of errors with the install process.
20 */
21 public function error( $errors ) {
22
23 if ( ! empty( $errors ) ) {
24 wp_send_json_error( $errors );
25 }
26 }
27 }
28