PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.0.4
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.0.4
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
content-control / classes / Installers / PluginSilentUpgraderSkin.php

PluginSilentUpgraderSkin.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 2.0.4, at classes/Installers/PluginSilentUpgraderSkin.php

57 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * PluginSilentUpgraderSkin class.
4 *
5 * @package ContentControl
6 * @subpackage Installers
7 * @since 2.0.0
8 */
9
10 namespace ContentControl\Installers;
11
12 /** \WP_Upgrader_Skin class */
13 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
14
15 /**
16 * Class PluginSilentUpgraderSkin.
17 *
18 * @internal Please do not use this class outside of core plugin development. May be removed at any time.
19 *
20 * @since 2.0.0
21 */
22 class PluginSilentUpgraderSkin extends \WP_Upgrader_Skin {
23
24 /**
25 * Empty out the header of its HTML content and only check to see if it has
26 * been performed or not.
27 */
28 public function header() {
29 }
30
31 /**
32 * Empty out the footer of its HTML contents.
33 */
34 public function footer() {
35 }
36
37 /**
38 * Instead of outputting HTML for errors, just return them.
39 * Ajax request will just ignore it.
40 *
41 * @param array $errors Array of errors with the install process.
42 *
43 * @return array
44 */
45 public function error( $errors ) {
46 return $errors;
47 }
48
49 /**
50 * Empty out JavaScript output that calls function to decrement the update counts.
51 *
52 * @param string $type Type of update count to decrement.
53 */
54 public function decrement_update_count( $type ) {
55 }
56 }
57