PluginSilentUpgrader.php
5 years ago
PluginSilentUpgraderSkin.php
6 years ago
addon-functions.php
6 years ago
class-cff-about.php
6 years ago
class-cff-new-user.php
5 years ago
class-cff-notifications.php
5 years ago
class-cff-tracking.php
5 years ago
class-install-skin.php
6 years ago
PluginSilentUpgraderSkin.php
58 lines
| 1 | <?php |
| 2 | |
| 3 | namespace CFF\Helpers; |
| 4 | |
| 5 | /** \WP_Upgrader_Skin class */ |
| 6 | require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php'; |
| 7 | |
| 8 | /** |
| 9 | * Class PluginSilentUpgraderSkin. |
| 10 | * |
| 11 | * @internal Please do not use this class outside of core WPForms development. May be removed at any time. |
| 12 | * |
| 13 | * @since 1.5.6.1 |
| 14 | */ |
| 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 | * Empty out the footer of its HTML contents. |
| 28 | * |
| 29 | * @since 1.5.6.1 |
| 30 | */ |
| 31 | public function footer() { |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Instead of outputting HTML for errors, just return them. |
| 36 | * Ajax request will just ignore it. |
| 37 | * |
| 38 | * @since 1.5.6.1 |
| 39 | * |
| 40 | * @param array $errors Array of errors with the install process. |
| 41 | * |
| 42 | * @return array |
| 43 | */ |
| 44 | public function error( $errors ) { |
| 45 | return $errors; |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Empty out JavaScript output that calls function to decrement the update counts. |
| 50 | * |
| 51 | * @since 1.5.6.1 |
| 52 | * |
| 53 | * @param string $type Type of update count to decrement. |
| 54 | */ |
| 55 | public function decrement_update_count( $type ) { |
| 56 | } |
| 57 | } |
| 58 |