[ Avaa Bypassed ]




Upload:

Command:

www-data@3.141.167.59: ~ $
<?php
/**
 * Upgrader API: WP_Ajax_Upgrader_Skin class
 *
 * @package WordPress
 * @subpackage Upgrader
 * @since 4.6.0
 */

/**
 * Upgrader Skin for Ajax WordPress upgrades.
 *
 * This skin is designed to be used for Ajax updates.
 *
 * @since 4.6.0
 *
 * @see Automatic_Upgrader_Skin
 */
class WP_Ajax_Upgrader_Skin extends Automatic_Upgrader_Skin {

	/**
	 * Plugin info.
	 *
	 * The Plugin_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the get_plugin_data() function.
	 *
	 * @var array Plugin data. Values will be empty if not supplied by the plugin.
	 */
	public $plugin_info = array();

	/**
	 * Theme info.
	 *
	 * The Theme_Upgrader::bulk_upgrade() method will fill this in
	 * with info retrieved from the Theme_Upgrader::theme_info() method,
	 * which in turn calls the wp_get_theme() function.
	 *
	 * @var WP_Theme|false The theme's info object, or false.
	 */
	public $theme_info = false;

	/**
	 * Holds the WP_Error object.
	 *
	 * @since 4.6.0
	 *
	 * @var null|WP_Error
	 */
	protected $errors = null;

	/**
	 * Constructor.
	 *
	 * Sets up the WordPress Ajax upgrader skin.
	 *
	 * @since 4.6.0
	 *
	 * @see WP_Upgrader_Skin::__construct()
	 *
	 * @param array $args Optional. The WordPress Ajax upgrader skin arguments to
	 *                    override default options. See WP_Upgrader_Skin::__construct().
	 *                    Default empty array.
	 */
	public function __construct( $args = array() ) {
		parent::__construct( $args );

		$this->errors = new WP_Error();
	}

	/**
	 * Retrieves the list of errors.
	 *
	 * @since 4.6.0
	 *
	 * @return WP_Error Errors during an upgrade.
	 */
	public function get_errors() {
		return $this->errors;
	}

	/**
	 * Retrieves a string for error messages.
	 *
	 * @since 4.6.0
	 *
	 * @return string Error messages during an upgrade.
	 */
	public function get_error_messages() {
		$messages = array();

		foreach ( $this->errors->get_error_codes() as $error_code ) {
			$error_data = $this->errors->get_error_data( $error_code );

			if ( $error_data && is_string( $error_data ) ) {
				$messages[] = $this->errors->get_error_message( $error_code ) . ' ' . esc_html( strip_tags( $error_data ) );
			} else {
				$messages[] = $this->errors->get_error_message( $error_code );
			}
		}

		return implode( ', ', $messages );
	}

	/**
	 * Stores an error message about the upgrade.
	 *
	 * @since 4.6.0
	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
	 *              to the function signature.
	 *
	 * @param string|WP_Error $errors  Errors.
	 * @param mixed           ...$args Optional text replacements.
	 */
	public function error( $errors, ...$args ) {
		if ( is_string( $errors ) ) {
			$string = $errors;
			if ( ! empty( $this->upgrader->strings[ $string ] ) ) {
				$string = $this->upgrader->strings[ $string ];
			}

			if ( false !== strpos( $string, '%' ) ) {
				if ( ! empty( $args ) ) {
					$string = vsprintf( $string, $args );
				}
			}

			// Count existing errors to generate a unique error code.
			$errors_count = count( $this->errors->get_error_codes() );
			$this->errors->add( 'unknown_upgrade_error_' . ( $errors_count + 1 ), $string );
		} elseif ( is_wp_error( $errors ) ) {
			foreach ( $errors->get_error_codes() as $error_code ) {
				$this->errors->add( $error_code, $errors->get_error_message( $error_code ), $errors->get_error_data( $error_code ) );
			}
		}

		parent::error( $errors, ...$args );
	}

	/**
	 * Stores a message about the upgrade.
	 *
	 * @since 4.6.0
	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
	 *              to the function signature.
	 * @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 ) ) {
			foreach ( $feedback->get_error_codes() as $error_code ) {
				$this->errors->add( $error_code, $feedback->get_error_message( $error_code ), $feedback->get_error_data( $error_code ) );
			}
		}

		parent::feedback( $feedback, ...$args );
	}
}

Filemanager

Name Type Size Permission Actions
admin-filters.php File 7.58 KB 0777
admin.php File 3.54 KB 0777
ajax-actions.php File 146.78 KB 0777
bookmark.php File 11.4 KB 0777
class-automatic-upgrader-skin.php File 3.58 KB 0777
class-bulk-plugin-upgrader-skin.php File 2.2 KB 0777
class-bulk-theme-upgrader-skin.php File 2.27 KB 0777
class-bulk-upgrader-skin.php File 5.44 KB 0777
class-core-upgrader.php File 14.65 KB 0777
class-custom-background.php File 20.69 KB 0777
class-custom-image-header.php File 47.21 KB 0777
class-file-upload-upgrader.php File 3.34 KB 0777
class-ftp-pure.php File 5.3 KB 0777
class-ftp-sockets.php File 8.28 KB 0777
class-ftp.php File 26.67 KB 0777
class-language-pack-upgrader-skin.php File 2.42 KB 0777
class-language-pack-upgrader.php File 14.58 KB 0777
class-pclzip.php File 192.11 KB 0777
class-plugin-installer-skin.php File 11.6 KB 0777
class-plugin-upgrader-skin.php File 3.2 KB 0777
class-plugin-upgrader.php File 21.14 KB 0777
class-theme-installer-skin.php File 12.26 KB 0777
class-theme-upgrader-skin.php File 4.07 KB 0777
class-theme-upgrader.php File 24.53 KB 0777
class-walker-category-checklist.php File 4.76 KB 0777
class-walker-nav-menu-checklist.php File 5.5 KB 0777
class-walker-nav-menu-edit.php File 12.95 KB 0777
class-wp-ajax-upgrader-skin.php File 4.1 KB 0777
class-wp-application-passwords-list-table.php File 6.73 KB 0777
class-wp-automatic-updater.php File 51.66 KB 0777
class-wp-comments-list-table.php File 30.3 KB 0777
class-wp-community-events.php File 18.33 KB 0777
class-wp-debug-data.php File 58.93 KB 0777
class-wp-filesystem-base.php File 22.86 KB 0777
class-wp-filesystem-direct.php File 16.8 KB 0777
class-wp-filesystem-ftpext.php File 20.06 KB 0777
class-wp-filesystem-ftpsockets.php File 16.82 KB 0777
class-wp-filesystem-ssh2.php File 21.8 KB 0777
class-wp-importer.php File 7.27 KB 0777
class-wp-internal-pointers.php File 4.47 KB 0777
class-wp-links-list-table.php File 8.26 KB 0777
class-wp-list-table-compat.php File 1.46 KB 0777
class-wp-list-table.php File 43.43 KB 0777
class-wp-media-list-table.php File 25.74 KB 0777
class-wp-ms-sites-list-table.php File 20.32 KB 0777
class-wp-ms-themes-list-table.php File 27.12 KB 0777
class-wp-ms-users-list-table.php File 14.43 KB 0777
class-wp-plugin-install-list-table.php File 23.69 KB 0777
class-wp-plugins-list-table.php File 48.4 KB 0777
class-wp-post-comments-list-table.php File 1.42 KB 0777
class-wp-posts-list-table.php File 60.52 KB 0777
class-wp-privacy-data-export-requests-list-table.php File 5.43 KB 0777
class-wp-privacy-data-removal-requests-list-table.php File 5.56 KB 0777
class-wp-privacy-policy-content.php File 31.59 KB 0777
class-wp-privacy-requests-table.php File 13.31 KB 0777
class-wp-screen.php File 36.36 KB 0777
class-wp-site-health-auto-updates.php File 13.2 KB 0777
class-wp-site-health.php File 111.65 KB 0777
class-wp-site-icon.php File 6.14 KB 0777
class-wp-terms-list-table.php File 19.14 KB 0777
class-wp-theme-install-list-table.php File 15.31 KB 0777
class-wp-themes-list-table.php File 9.99 KB 0777
class-wp-upgrader-skin.php File 6.34 KB 0777
class-wp-upgrader-skins.php File 1.44 KB 0777
class-wp-upgrader.php File 36.59 KB 0777
class-wp-users-list-table.php File 18.42 KB 0777
comment.php File 5.98 KB 0777
continents-cities.php File 20.06 KB 0777
credits.php File 5.8 KB 0777
dashboard.php File 67.52 KB 0777
deprecated.php File 40.74 KB 0777
edit-tag-messages.php File 1.44 KB 0777
export.php File 23.57 KB 0777
file.php File 91.72 KB 0777
image-edit.php File 38.23 KB 0777
image.php File 37.91 KB 0777
import.php File 6.52 KB 0777
list-table.php File 3.71 KB 0777
media.php File 115.15 KB 0777
menu.php File 9.44 KB 0777
meta-boxes.php File 64.38 KB 0777
misc.php File 44.74 KB 0777
ms-admin-filters.php File 1.27 KB 0777
ms-deprecated.php File 3.68 KB 0777
ms.php File 32.79 KB 0777
nav-menu.php File 46 KB 0777
network.php File 26.04 KB 0777
noop.php File 1.06 KB 0777
options.php File 4.05 KB 0777
plugin-install.php File 34.08 KB 0777
plugin.php File 87.7 KB 0777
post.php File 75.73 KB 0777
privacy-tools.php File 32.67 KB 0777
revision.php File 15.75 KB 0777
schema.php File 41.77 KB 0777
screen.php File 6.21 KB 0777
taxonomy.php File 8.22 KB 0777
template.php File 95.11 KB 0777
theme-install.php File 6.82 KB 0777
theme.php File 45.68 KB 0777
translation-install.php File 8.69 KB 0777
update-core.php File 69.14 KB 0777
update.php File 34.62 KB 0777
upgrade.php File 108.25 KB 0777
user.php File 20.51 KB 0777
widgets.php File 10.59 KB 0777