var
/
www
/
html
/
wiensworld.de
/
wp-admin
/
includes
| uid:33
class-automatic-upgrader-skin.php
[X]
<?php /** * Upgrader API: Automatic_Upgrader_Skin class * * @package WordPress * @subpackage Upgrader * @since 4.6.0 */ /** * Upgrader Skin for Automatic WordPress Upgrades. * * This skin is designed to be used when no output is intended, all output * is captured and stored for the caller to process and log/email/discard. * * @since 3.7.0 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php. * * @see Bulk_Upgrader_Skin */ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { protected $messages = array(); /** * Determines whether the upgrader needs FTP/SSH details in order to connect * to the filesystem. * * @since 3.7.0 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string. * * @see request_filesystem_credentials() * * @param bool|WP_Error $error Optional. Whether the current request has failed to connect, * or an error object. Default false. * @param string $context Optional. Full path to the directory that is tested * for being writable. Default empty. * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false. * @return bool True on success, false on failure. */ public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) { if ( $context ) { $this->options['context'] = $context; } /* * TODO: Fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version. * This will output a credentials form in event of failure. We don't want that, so just hide with a buffer. */ ob_start(); $result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership ); ob_end_clean(); return $result; } /** * Retrieves the upgrade messages. * * @since 3.7.0 * * @return string[] Messages during an upgrade. */ public function get_upgrade_messages() { return $this->messages; } /** * Stores a message about the upgrade. * * @since 3.7.0 * @since 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support. * * @param string|array|WP_Error $feedback Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $feedback, ...$args ) { if ( is_wp_error( $feedback ) ) { $string = $feedback->get_error_message(); } elseif ( is_array( $feedback ) ) { return; } else { $string = $feedback; } if ( ! empty( $this->upgrader->strings[ $string ] ) ) { $string = $this->upgrader->strings[ $string ]; } if ( str_contains( $string, '%' ) ) { if ( ! empty( $args ) ) { $string = vsprintf( $string, $args ); } } $string = trim( $string ); // Only allow basic HTML in the messages, as it'll be used in emails/logs rather than direct browser output. $string = wp_kses( $string, array( 'a' => array( 'href' => true, ), 'br' => true, 'em' => true, 'strong' => true, ) ); if ( empty( $string ) ) { return; } $this->messages[] = $string; } /** * Creates a new output buffer. * * @since 3.7.0 */ public function header() { ob_start(); } /** * Retrieves the buffered content, deletes the buffer, and processes the output. * * @since 3.7.0 */ public function footer() { $output = ob_get_clean(); if ( ! empty( $output ) ) { $this->feedback( $output ); } } }
admin-filters.php
7.8K
V
E
R
D
admin.php
3.5K
V
E
R
D
ajax-actions.php
149.2K
V
E
R
D
bookmark.php
11.4K
V
E
R
D
class-automatic-upgrader-skin.php
3.6K
V
E
R
D
class-bulk-plugin-upgrader-skin.php
2.5K
V
E
R
D
class-bulk-theme-upgrader-skin.php
2.6K
V
E
R
D
class-bulk-upgrader-skin.php
6.5K
V
E
R
D
class-core-upgrader.php
14.8K
V
E
R
D
class-custom-background.php
21.2K
V
E
R
D
class-custom-image-header.php
48K
V
E
R
D
class-file-upload-upgrader.php
4.1K
V
E
R
D
class-ftp-sockets.php
8.3K
V
E
R
D
class-ftp.php
26.7K
V
E
R
D
class-language-pack-upgrader-skin.php
2.8K
V
E
R
D
class-language-pack-upgrader.php
15.2K
V
E
R
D
class-pclzip.php
192.1K
V
E
R
D
class-plugin-installer-skin.php
11.7K
V
E
R
D
class-plugin-upgrader-skin.php
3.2K
V
E
R
D
class-plugin-upgrader.php
22.7K
V
E
R
D
class-theme-installer-skin.php
12.7K
V
E
R
D
class-theme-upgrader-skin.php
4.1K
V
E
R
D
class-theme-upgrader.php
26.2K
V
E
R
D
class-walker-category-checklist.php
5K
V
E
R
D
class-walker-nav-menu-checklist.php
5.6K
V
E
R
D
class-walker-nav-menu-edit.php
14K
V
E
R
D
class-wp-ajax-upgrader-skin.php
4.1K
V
E
R
D
class-wp-application-passwords-list-table.php
6.8K
V
E
R
D
class-wp-automatic-updater.php
60.5K
V
E
R
D
class-wp-comments-list-table.php
33.8K
V
E
R
D
class-wp-community-events.php
18.2K
V
E
R
D
class-wp-debug-data.php
70.3K
V
E
R
D
class-wp-filesystem-base.php
23.8K
V
E
R
D
class-wp-filesystem-direct.php
18.2K
V
E
R
D
class-wp-filesystem-ftpext.php
22.7K
V
E
R
D
class-wp-filesystem-ftpsockets.php
18.1K
V
E
R
D
class-wp-filesystem-ssh2.php
22.8K
V
E
R
D
class-wp-importer.php
7.6K
V
E
R
D
class-wp-internal-pointers.php
4.5K
V
E
R
D
class-wp-links-list-table.php
9.3K
V
E
R
D
class-wp-list-table-compat.php
1.5K
V
E
R
D
class-wp-list-table.php
51.9K
V
E
R
D
class-wp-media-list-table.php
26.4K
V
E
R
D
class-wp-ms-sites-list-table.php
22.2K
V
E
R
D
class-wp-ms-themes-list-table.php
29.5K
V
E
R
D
class-wp-ms-users-list-table.php
15.3K
V
E
R
D
class-wp-plugin-install-list-table.php
24.4K
V
E
R
D
class-wp-plugins-list-table.php
56.7K
V
E
R
D
class-wp-post-comments-list-table.php
1.4K
V
E
R
D
class-wp-posts-list-table.php
63.5K
V
E
R
D
class-wp-privacy-data-export-requests-list-table.php
5.4K
V
E
R
D
class-wp-privacy-data-removal-requests-list-table.php
5.6K
V
E
R
D
class-wp-privacy-policy-content.php
31.9K
V
E
R
D
class-wp-privacy-requests-table.php
14.4K
V
E
R
D
class-wp-screen.php
36.6K
V
E
R
D
class-wp-site-health-auto-updates.php
14K
V
E
R
D
class-wp-site-health.php
128.2K
V
E
R
D
class-wp-site-icon.php
6.3K
V
E
R
D
class-wp-terms-list-table.php
20.6K
V
E
R
D
class-wp-theme-install-list-table.php
15.3K
V
E
R
D
class-wp-themes-list-table.php
10.1K
V
E
R
D
class-wp-upgrader-skin.php
6.9K
V
E
R
D
class-wp-upgrader-skins.php
1.4K
V
E
R
D
class-wp-upgrader.php
47.2K
V
E
R
D
class-wp-users-list-table.php
18.6K
V
E
R
D
comment.php
6.1K
V
E
R
D
credits.php
5.7K
V
E
R
D
dashboard.php
68.7K
V
E
R
D
deprecated.php
40.8K
V
E
R
D
edit-tag-messages.php
1.4K
V
E
R
D
export.php
25.4K
V
E
R
D
file.php
95.6K
V
E
R
D
image-edit.php
43K
V
E
R
D
image.php
44.1K
V
E
R
D
import.php
6.5K
V
E
R
D
list-table.php
3.7K
V
E
R
D
media.php
117.1K
V
E
R
D
menu.php
9.4K
V
E
R
D
meta-boxes.php
65.3K
V
E
R
D
misc.php
45.4K
V
E
R
D
ms-admin-filters.php
1.3K
V
E
R
D
ms-deprecated.php
3.7K
V
E
R
D
ms.php
33.4K
V
E
R
D
nav-menu.php
48K
V
E
R
D
network.php
26.4K
V
E
R
D
noop.php
1.1K
V
E
R
D
options.php
4.1K
V
E
R
D
plugin-install.php
38.2K
V
E
R
D
plugin.php
91.1K
V
E
R
D
post.php
80.3K
V
E
R
D
privacy-tools.php
32.7K
V
E
R
D
revision.php
16.2K
V
E
R
D
schema.php
44.5K
V
E
R
D
screen.php
6.2K
V
E
R
D
taxonomy.php
8.3K
V
E
R
D
template.php
97.3K
V
E
R
D
theme-install.php
6.8K
V
E
R
D
theme.php
46.4K
V
E
R
D
translation-install.php
10.8K
V
E
R
D
update-core.php
71.2K
V
E
R
D
update.php
34K
V
E
R
D
upgrade.php
114K
V
E
R
D