diff --git src/wp-admin/includes/class-automatic-upgrader-skin.php src/wp-admin/includes/class-automatic-upgrader-skin.php
index 23fab8b..c812dfe 100644
|
|
|
19 | 19 | * @see Bulk_Upgrader_Skin |
20 | 20 | */ |
21 | 21 | class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
| 22 | |
| 23 | /** |
| 24 | * Variable that holds internal messages of array in this class. |
| 25 | * |
| 26 | * @access protected |
| 27 | * |
| 28 | * @var array |
| 29 | */ |
22 | 30 | protected $messages = array(); |
23 | 31 | |
24 | 32 | /** |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
30 | 38 | * |
31 | 39 | * @see request_filesystem_credentials() |
32 | 40 | * |
| 41 | * @access public |
| 42 | * |
33 | 43 | * @param bool $error Optional. Whether the current request has failed to connect. |
34 | 44 | * Default false. |
35 | 45 | * @param string $context Optional. Full path to the directory that is tested |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
42 | 52 | $this->options['context'] = $context; |
43 | 53 | } |
44 | 54 | // TODO: fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version |
45 | | // This will output a credentials form in event of failure, We don't want that, so just hide with a buffer |
| 55 | // This will output a credentials form in event of failure, We don't want that, so just hide with a buffer. |
46 | 56 | ob_start(); |
47 | 57 | $result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership ); |
48 | 58 | ob_end_clean(); |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
50 | 60 | } |
51 | 61 | |
52 | 62 | /** |
| 63 | * Returns upgrade messages. |
| 64 | * |
53 | 65 | * @access public |
54 | 66 | * |
55 | 67 | * @return array |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
59 | 71 | } |
60 | 72 | |
61 | 73 | /** |
62 | | * @param string|array|WP_Error $data |
| 74 | * Displays success or error message on the update process. |
| 75 | * |
| 76 | * @access public |
| 77 | * |
| 78 | * @param string $data Upgrade function that needs feedback to show if success or fail. |
63 | 79 | */ |
64 | 80 | public function feedback( $data ) { |
65 | 81 | if ( is_wp_error( $data ) ) { |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
98 | 114 | } |
99 | 115 | |
100 | 116 | /** |
| 117 | * Buffers the output. |
| 118 | * |
101 | 119 | * @access public |
102 | 120 | */ |
103 | 121 | public function header() { |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
105 | 123 | } |
106 | 124 | |
107 | 125 | /** |
| 126 | * Cleans the output buffer. |
| 127 | * |
108 | 128 | * @access public |
109 | 129 | */ |
110 | 130 | public function footer() { |