PluginProbe ʕ •ᴥ•ʔ
Popup Builder & Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation / 2.15.2
Popup Builder & Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation v2.15.2
2.16.24 trunk 2.13.8 2.14.0 2.14.1 2.15.0 2.15.1 2.15.2 2.15.3 2.16.0 2.16.1 2.16.10 2.16.11 2.16.12 2.16.13 2.16.14 2.16.15 2.16.16 2.16.17 2.16.18 2.16.19 2.16.2 2.16.20 2.16.21 2.16.22 2.16.3 2.16.4 2.16.5 2.16.6 2.16.7 2.16.8 2.16.9
optinmonster / OMAPI / InstallSkinCompat.php
optinmonster / OMAPI Last commit date
EasyDigitalDownloads 3 years ago Elementor 2 years ago Integrations 3 years ago MemberPress 2 years ago Plugins 2 years ago Promos 3 years ago Rules 2 years ago Shortcodes 2 years ago WPForms 3 years ago WooCommerce 2 years ago Actions.php 2 years ago Ajax.php 4 years ago Api.php 2 years ago ApiAuth.php 4 years ago ApiKey.php 2 years ago AssetLoader.php 5 years ago BaseRestApi.php 3 years ago Blocks.php 2 years ago ClassicEditor.php 3 years ago ConstantContact.php 4 years ago Debug.php 4 years ago EasyDigitalDownloads.php 3 years ago Elementor.php 3 years ago Inserter.php 3 years ago InstallSkin.php 5 years ago InstallSkinCompat.php 5 years ago MailPoet.php 4 years ago MemberPress.php 2 years ago Menu.php 2 years ago Notifications.php 3 years ago OmuApi.php 4 years ago Output.php 2 years ago Pages.php 2 years ago Partners.php 2 years ago Plugins.php 3 years ago Promos.php 3 years ago Refresh.php 2 years ago RestApi.php 2 years ago RevenueAttribution.php 4 years ago Review.php 4 years ago Rules.php 3 years ago Save.php 2 years ago Shortcode.php 4 years ago Sites.php 2 years ago Support.php 3 years ago Type.php 3 years ago Urls.php 2 years ago Utils.php 3 years ago Validate.php 4 years ago WPForms.php 2 years ago Welcome.php 4 years ago Widget.php 4 years ago WooCommerce.php 2 years ago Wordfence.php 3 years ago WpErrorException.php 5 years ago
InstallSkinCompat.php
69 lines
1 <?php
2 /**
3 * Install Skin Compatibility class.
4 *
5 * @since 1.9.10
6 *
7 * @package OMAPI
8 * @author Justin Sternberg
9 */
10
11 // Exit if accessed directly.
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 /**
17 * WordPress class extended for on-the-fly addon installations.
18 */
19 class OMAPI_InstallSkinCompat extends WP_Upgrader_Skin {
20
21 /**
22 * Empty out the header of its HTML content and only check to see if it has
23 * been performed or not.
24 *
25 * @since 1.9.10
26 */
27 public function header() {}
28
29 /**
30 * Empty out the footer of its HTML contents.
31 *
32 * @since 1.9.10
33 */
34 public function footer() {}
35
36 /**
37 * Instead of outputting HTML for errors, json_encode the errors and send them
38 * back to the Ajax script for processing.
39 *
40 * @since 1.9.10
41 *
42 * @param array $errors Array of errors with the install process.
43 */
44 public function error( $errors ) {
45 if ( ! empty( $errors ) ) {
46 wp_send_json_error( $errors );
47 }
48 }
49
50 /**
51 * Empty out the feedback method to prevent outputting HTML strings as the install
52 * is progressing.
53 *
54 * @since 1.9.10
55 *
56 * @param string $string The feedback string.
57 */
58 public function feedback( $string ) {}
59
60 /**
61 * Empty out JavaScript output that calls function to decrement the update counts.
62 *
63 * @since 1.9.10
64 *
65 * @param string $type Type of update count to decrement.
66 */
67 public function decrement_update_count( $type ) {}
68 }
69