Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-admin
/
includes
/
File Content:
class-automatic-upgrader-skin.php
<?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 array Messages during an upgrade. */ public function get_upgrade_messages() { return $this->messages; } /** * Stores a message about the upgrade. * * @since 3.7.0 * * @param string|array|WP_Error $data Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $data, ...$args ) { if ( is_wp_error( $data ) ) { $string = $data->get_error_message(); } elseif ( is_array( $data ) ) { return; } else { $string = $data; } if ( ! empty( $this->upgrader->strings[ $string ] ) ) { $string = $this->upgrader->strings[ $string ]; } if ( strpos( $string, '%' ) !== false ) { 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 ); } } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
admin-filters.php
6954 bytes
0644
ajax-actions.php
146967 bytes
0644
class-automatic-upgrader-skin.php
3558 bytes
0644
class-bulk-theme-upgrader-skin.php
2440 bytes
0644
class-bulk-upgrader-skin.php
5309 bytes
0604
class-theme-upgrader-skin.php
4085 bytes
0644
class-walker-category-checklist.php
4389 bytes
0644
class-wp-ajax-upgrader-skin.php
3504 bytes
0644
class-wp-application-passwords-list-table.php
6708 bytes
0644
class-wp-community-events.php
18458 bytes
0644
class-wp-media-list-table.php
23774 bytes
0644
class-wp-ms-sites-list-table.php
20397 bytes
0644
class-wp-ms-themes-list-table.php
27176 bytes
0644
class-wp-ms-users-list-table.php
14111 bytes
0644
class-wp-plugin-install-list-table.php
23200 bytes
0644
class-wp-post-comments-list-table.php
1472 bytes
0604
class-wp-privacy-data-export-requests-list-table.php
5535 bytes
0644
class-wp-privacy-data-removal-requests-list-table.php
5692 bytes
0644
class-wp-privacy-policy-content.php
32186 bytes
0644
class-wp-site-health-auto-updates.php
13209 bytes
0644
class-wp-site-health.php
90667 bytes
0644
class-wp-site-icon.php
6195 bytes
0644
class-wp-theme-install-list-table.php
23875 bytes
0644
class-wp-upgrader-skin.php
6311 bytes
0644
class-wp-upgrader-skins.php
1477 bytes
0604
credits.php
5867 bytes
0644
edit-tag-messages.php
1437 bytes
0604
image-edit-20260622000526.php
36119 bytes
0644
ms-admin-filters.php
1376 bytes
0604
translation-install.php
8870 bytes
0644
N4ST4R_ID | Naxtarrr