| 1 |
<?php |
| 2 |
|
| 3 |
namespace ChartBuilder\Helpers; |
| 4 |
|
| 5 |
/** \WP_Upgrader_Skin class */ |
| 6 |
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php'; |
| 7 |
|
| 8 |
class Chart_Builder_Plugin_Silent_Upgrader_Skin extends \WP_Upgrader_Skin { |
| 9 |
|
| 10 |
/** |
| 11 |
* Empty out the header of its HTML content and only check to see if it has |
| 12 |
* been performed or not. |
| 13 |
* |
| 14 |
* @since 6.4.0.4 |
| 15 |
*/ |
| 16 |
public function header() { |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Empty out the footer of its HTML contents. |
| 21 |
* |
| 22 |
* @since 6.4.0.4 |
| 23 |
*/ |
| 24 |
public function footer() { |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Instead of outputting HTML for errors, just return them. |
| 29 |
* Ajax request will just ignore it. |
| 30 |
* |
| 31 |
* @since 6.4.0.4 |
| 32 |
* |
| 33 |
* @param array $errors Array of errors with the install process. |
| 34 |
* |
| 35 |
* @return array |
| 36 |
*/ |
| 37 |
public function error( $errors ) { |
| 38 |
return $errors; |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* Empty out JavaScript output that calls function to decrement the update counts. |
| 43 |
* |
| 44 |
* @since 6.4.0.4 |
| 45 |
* |
| 46 |
* @param string $type Type of update count to decrement. |
| 47 |
*/ |
| 48 |
public function decrement_update_count( $type ) { |
| 49 |
} |
| 50 |
} |
| 51 |
|