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