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