run:R W Run
7.85 KB
2026-03-11 16:18:51
R W Run
3.54 KB
2026-03-11 16:18:51
R W Run
148.33 KB
2026-03-11 16:18:51
R W Run
11.45 KB
2026-03-11 16:18:51
R W Run
3.58 KB
2026-03-11 16:18:51
R W Run
2.53 KB
2026-03-11 16:18:51
R W Run
2.6 KB
2026-03-11 16:18:51
R W Run
6.59 KB
2026-03-11 16:18:51
R W Run
14.83 KB
2026-03-11 16:18:51
R W Run
21.18 KB
2026-03-11 16:18:51
R W Run
48.13 KB
2026-03-11 16:18:51
R W Run
4.07 KB
2026-03-11 16:18:51
R W Run
5.3 KB
2026-03-11 16:18:51
R W Run
8.28 KB
2026-03-11 16:18:51
R W Run
26.73 KB
2026-03-11 16:18:51
R W Run
2.8 KB
2026-03-11 16:18:51
R W Run
15.2 KB
2026-03-11 16:18:51
R W Run
192.08 KB
2026-03-11 16:18:51
R W Run
11.77 KB
2026-03-11 16:18:51
R W Run
3.2 KB
2026-03-11 16:18:51
R W Run
22.89 KB
2026-03-11 16:18:51
R W Run
12.77 KB
2026-03-11 16:18:51
R W Run
4.08 KB
2026-03-11 16:18:51
R W Run
26.27 KB
2026-03-11 16:18:51
R W Run
4.97 KB
2026-03-11 16:18:51
R W Run
5.57 KB
2026-03-11 16:18:51
R W Run
13.93 KB
2026-03-11 16:18:51
R W Run
4.09 KB
2026-03-11 16:18:51
R W Run
6.79 KB
2026-03-11 16:18:51
R W Run
60.45 KB
2026-03-11 16:18:51
R W Run
32.4 KB
2026-03-11 16:18:51
R W Run
18.24 KB
2026-03-11 16:18:51
R W Run
66.01 KB
2026-03-11 16:18:51
R W Run
23.84 KB
2026-03-11 16:18:51
R W Run
17.72 KB
2026-03-11 16:18:51
R W Run
22.71 KB
2026-03-11 16:18:51
R W Run
18.05 KB
2026-03-11 16:18:51
R W Run
22.76 KB
2026-03-11 16:18:51
R W Run
7.34 KB
2026-03-11 16:18:51
R W Run
4.51 KB
2026-03-11 16:18:51
R W Run
9.02 KB
2026-03-11 16:18:51
R W Run
1.46 KB
2026-03-11 16:18:51
R W Run
51.76 KB
2026-03-11 16:18:51
R W Run
25.29 KB
2026-03-11 16:18:51
R W Run
21.61 KB
2026-03-11 16:18:51
R W Run
27.77 KB
2026-03-11 16:18:51
R W Run
15.35 KB
2026-03-11 16:18:51
R W Run
24.54 KB
2026-03-11 16:18:51
R W Run
56.44 KB
2026-03-11 16:18:51
R W Run
1.42 KB
2026-03-11 16:18:51
R W Run
63.66 KB
2026-03-11 16:18:51
R W Run
31.9 KB
2026-03-11 16:18:51
R W Run
14.44 KB
2026-03-11 16:18:51
R W Run
36.47 KB
2026-03-11 16:18:51
R W Run
14 KB
2026-03-11 16:18:51
R W Run
121.89 KB
2026-03-11 16:18:51
R W Run
6.26 KB
2026-03-11 16:18:51
R W Run
20.73 KB
2026-03-11 16:18:51
R W Run
15.23 KB
2026-03-11 16:18:51
R W Run
10.14 KB
2026-03-11 16:18:51
R W Run
6.94 KB
2026-03-11 16:18:51
R W Run
1.44 KB
2026-03-11 16:18:51
R W Run
46.85 KB
2026-03-11 16:18:51
R W Run
18.61 KB
2026-03-11 16:18:51
R W Run
6.08 KB
2026-03-11 16:18:51
R W Run
20.06 KB
2026-03-11 16:18:51
R W Run
5.73 KB
2026-03-11 16:18:51
R W Run
68.18 KB
2026-03-11 16:18:51
R W Run
40.8 KB
2026-03-11 16:18:51
R W Run
1.44 KB
2026-03-11 16:18:51
R W Run
25.26 KB
2026-03-11 16:18:51
R W Run
95.94 KB
2026-03-11 16:18:51
R W Run
43.12 KB
2026-03-11 16:18:51
R W Run
41.73 KB
2026-03-11 16:18:51
R W Run
6.46 KB
2026-03-11 16:18:51
R W Run
3.71 KB
2026-03-11 16:18:51
R W Run
116.31 KB
2026-03-11 16:18:51
R W Run
9.39 KB
2026-03-11 16:18:51
R W Run
64.34 KB
2026-03-11 16:18:51
R W Run
44.73 KB
2026-03-11 16:18:51
R W Run
1.27 KB
2026-03-11 16:18:51
R W Run
3.68 KB
2026-03-11 16:18:51
R W Run
33.53 KB
2026-03-11 16:18:51
R W Run
48.84 KB
2026-03-11 16:18:51
R W Run
26.35 KB
2026-03-11 16:18:51
R W Run
1.12 KB
2026-03-11 16:18:51
R W Run
4.19 KB
2026-03-11 16:18:51
R W Run
38.19 KB
2026-03-11 16:18:51
R W Run
91.33 KB
2026-03-11 16:18:51
R W Run
80.39 KB
2026-03-11 16:18:51
R W Run
32.67 KB
2026-03-11 16:18:51
R W Run
16.18 KB
2026-03-11 16:18:51
R W Run
44.46 KB
2026-03-11 16:18:51
R W Run
6.23 KB
2026-03-11 16:18:51
R W Run
8.23 KB
2026-03-11 16:18:51
R W Run
96.96 KB
2026-03-11 16:18:51
R W Run
6.83 KB
2026-03-11 16:18:51
R W Run
46.62 KB
2026-03-11 16:18:51
R W Run
10.82 KB
2026-03-11 16:18:51
R W Run
68.86 KB
2026-03-11 16:18:51
R W Run
33.63 KB
2026-03-11 16:18:51
R W Run
113.3 KB
2026-03-11 16:18:51
R W Run
22.98 KB
2026-03-11 16:18:51
R W Run
10.66 KB
2026-03-11 16:18:51
R W Run
error_log
📄class-automatic-upgrader-skin.php
1<?php
2/**
3 * Upgrader API: Automatic_Upgrader_Skin class
4 *
5 * @package WordPress
6 * @subpackage Upgrader
7 * @since 4.6.0
8 */
9
10/**
11 * Upgrader Skin for Automatic WordPress Upgrades.
12 *
13 * This skin is designed to be used when no output is intended, all output
14 * is captured and stored for the caller to process and log/email/discard.
15 *
16 * @since 3.7.0
17 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php.
18 *
19 * @see Bulk_Upgrader_Skin
20 */
21class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
22 protected $messages = array();
23
24 /**
25 * Determines whether the upgrader needs FTP/SSH details in order to connect
26 * to the filesystem.
27 *
28 * @since 3.7.0
29 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
30 *
31 * @see request_filesystem_credentials()
32 *
33 * @param bool|WP_Error $error Optional. Whether the current request has failed to connect,
34 * or an error object. Default false.
35 * @param string $context Optional. Full path to the directory that is tested
36 * for being writable. Default empty.
37 * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false.
38 * @return bool True on success, false on failure.
39 */
40 public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
41 if ( $context ) {
42 $this->options['context'] = $context;
43 }
44 /*
45 * TODO: Fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version.
46 * This will output a credentials form in event of failure. We don't want that, so just hide with a buffer.
47 */
48 ob_start();
49 $result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
50 ob_end_clean();
51 return $result;
52 }
53
54 /**
55 * Retrieves the upgrade messages.
56 *
57 * @since 3.7.0
58 *
59 * @return string[] Messages during an upgrade.
60 */
61 public function get_upgrade_messages() {
62 return $this->messages;
63 }
64
65 /**
66 * Stores a message about the upgrade.
67 *
68 * @since 3.7.0
69 * @since 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support.
70 *
71 * @param string|array|WP_Error $feedback Message data.
72 * @param mixed ...$args Optional text replacements.
73 */
74 public function feedback( $feedback, ...$args ) {
75 if ( is_wp_error( $feedback ) ) {
76 $string = $feedback->get_error_message();
77 } elseif ( is_array( $feedback ) ) {
78 return;
79 } else {
80 $string = $feedback;
81 }
82
83 if ( ! empty( $this->upgrader->strings[ $string ] ) ) {
84 $string = $this->upgrader->strings[ $string ];
85 }
86
87 if ( str_contains( $string, '%' ) ) {
88 if ( ! empty( $args ) ) {
89 $string = vsprintf( $string, $args );
90 }
91 }
92
93 $string = trim( $string );
94
95 // Only allow basic HTML in the messages, as it'll be used in emails/logs rather than direct browser output.
96 $string = wp_kses(
97 $string,
98 array(
99 'a' => array(
100 'href' => true,
101 ),
102 'br' => true,
103 'em' => true,
104 'strong' => true,
105 )
106 );
107
108 if ( empty( $string ) ) {
109 return;
110 }
111
112 $this->messages[] = $string;
113 }
114
115 /**
116 * Creates a new output buffer.
117 *
118 * @since 3.7.0
119 */
120 public function header() {
121 ob_start();
122 }
123
124 /**
125 * Retrieves the buffered content, deletes the buffer, and processes the output.
126 *
127 * @since 3.7.0
128 */
129 public function footer() {
130 $output = ob_get_clean();
131 if ( ! empty( $output ) ) {
132 $this->feedback( $output );
133 }
134 }
135}
136