PluginProbe
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / trunk
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress vtrunk
4.12.0 4.10.0 4.9.0 4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 All 171 releases
custom-facebook-feed / inc / Admin / CFF_Install_Skin.php
CFF_Install_Skin.php
35 lines 700 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace CustomFacebookFeed\Admin;
4
5 use CustomFacebookFeed\Helpers\PluginSilentUpgraderSkin;
6
7 if (!defined('ABSPATH')) {
8 exit; // Exit if accessed directly
9 }
10
11 /**
12 * Skin for on-the-fly addon installations.
13 *
14 * @since 1.0.0
15 * @since 1.5.6.1 Extend PluginSilentUpgraderSkin and clean up the class.
16 */
17 class CFF_Install_Skin extends PluginSilentUpgraderSkin
18 {
19 /**
20 * Instead of outputting HTML for errors, json_encode the errors and send them
21 * back to the Ajax script for processing.
22 *
23 * @since 1.0.0
24 *
25 * @param array $errors Array of errors with the install process.
26 */
27 public function error($errors)
28 {
29
30 if (! empty($errors)) {
31 wp_send_json_error($errors);
32 }
33 }
34 }
35