DebugEvents
6 days ago
EmailSendingErrors
6 days ago
Pages
6 days ago
Recommendations
6 days ago
AdminBarMenu.php
6 days ago
Area.php
6 days ago
ConnectionSettings.php
6 days ago
DashboardWidget.php
6 days ago
DomainChecker.php
6 days ago
Education.php
6 days ago
FlyoutMenu.php
6 days ago
Notifications.php
6 days ago
PageAbstract.php
6 days ago
PageInterface.php
6 days ago
ParentPageAbstract.php
6 days ago
PluginsInstallSkin.php
6 days ago
Review.php
6 days ago
SetupWizard.php
6 days ago
WooCommerceActiveLayerEducation.php
6 days ago
PluginsInstallSkin.php
59 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPMailSMTP\Admin; |
| 4 | |
| 5 | use Automatic_Upgrader_Skin; |
| 6 | |
| 7 | /** |
| 8 | * WordPress class extended for on-the-fly plugin installations. |
| 9 | * |
| 10 | * @since 1.5.0 |
| 11 | * @since 1.7.1 Removed feedback() method override to be compatible with PHP5.3+ and WP5.3. |
| 12 | * @since 3.11.0 Updated to extend Automatic_Upgrader_Skin. |
| 13 | */ |
| 14 | class PluginsInstallSkin extends Automatic_Upgrader_Skin { |
| 15 | |
| 16 | /** |
| 17 | * Empty out the header of its HTML content and only check to see if it has |
| 18 | * been performed or not. |
| 19 | * |
| 20 | * @since 1.5.0 |
| 21 | */ |
| 22 | public function header() { |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Empty out the footer of its HTML contents. |
| 27 | * |
| 28 | * @since 1.5.0 |
| 29 | */ |
| 30 | public function footer() { |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Instead of outputting HTML for errors, json_encode the errors and send them |
| 35 | * back to the Ajax script for processing. |
| 36 | * |
| 37 | * @since 1.5.0 |
| 38 | * |
| 39 | * @param array $errors Array of errors with the install process. |
| 40 | */ |
| 41 | public function error( $errors ) { |
| 42 | |
| 43 | if ( ! empty( $errors ) ) { |
| 44 | wp_send_json_error( $errors ); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Empty out JavaScript output that calls function to decrement the update counts. |
| 50 | * |
| 51 | * @since 1.5.0 |
| 52 | * |
| 53 | * @param string $type Type of update count to decrement. |
| 54 | */ |
| 55 | public function decrement_update_count( $type ) { |
| 56 | } |
| 57 | } |
| 58 | |
| 59 |