diff --git src/wp-admin/includes/class-automatic-upgrader-skin.php src/wp-admin/includes/class-automatic-upgrader-skin.php
index 23fab8b..e7bf0da 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 | * @var array |
| 28 | */ |
22 | 29 | protected $messages = array(); |
23 | 30 | |
24 | 31 | /** |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
42 | 49 | $this->options['context'] = $context; |
43 | 50 | } |
44 | 51 | // 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 |
| 52 | // This will output a credentials form in event of failure, We don't want that, so just hide with a buffer. |
46 | 53 | ob_start(); |
47 | 54 | $result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership ); |
48 | 55 | ob_end_clean(); |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
50 | 57 | } |
51 | 58 | |
52 | 59 | /** |
| 60 | * Returns upgrade messages. |
| 61 | * |
53 | 62 | * @access public |
54 | 63 | * |
55 | 64 | * @return array |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
59 | 68 | } |
60 | 69 | |
61 | 70 | /** |
62 | | * @param string|array|WP_Error $data |
| 71 | * Displays success or error message on the update process. |
| 72 | * |
| 73 | * @param string $data Upgrade function that needs feedback to show if success or fail. |
63 | 74 | */ |
64 | 75 | public function feedback( $data ) { |
65 | 76 | if ( is_wp_error( $data ) ) { |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
98 | 109 | } |
99 | 110 | |
100 | 111 | /** |
| 112 | * Buffers the output. |
| 113 | * |
101 | 114 | * @access public |
102 | 115 | */ |
103 | 116 | public function header() { |
… |
… |
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { |
105 | 118 | } |
106 | 119 | |
107 | 120 | /** |
| 121 | * Cleans the output buffer. |
| 122 | * |
108 | 123 | * @access public |
109 | 124 | */ |
110 | 125 | public function footer() { |