PluginProbe
Custom Twitter Feeds – A Tweets Widget or X Feed Widget / 2.8.0
Custom Twitter Feeds – A Tweets Widget or X Feed Widget v2.8.0
2.8.0 2.7.0 2.6.1 2.6.0 1.0 1.0.1 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 All 62 releases
custom-twitter-feeds / inc / Admin / PluginSilentUpgraderSkin.php
PluginSilentUpgraderSkin.php
58 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace CTF\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