Редактор файлов и навигация
Текущая папка: //wp-admin/includes
Содержимое
.. назад
[FILE]
admin-filters.php
[FILE]
admin.php
[FILE]
ajax-actions.php
[FILE]
bookmark.php
[FILE]
class-automatic-upgrader-skin.php
[FILE]
class-bulk-plugin-upgrader-skin.php
[FILE]
class-bulk-theme-upgrader-skin.php
[FILE]
class-bulk-upgrader-skin.php
[FILE]
class-core-upgrader.php
[FILE]
class-custom-background.php
[FILE]
class-custom-image-header.php
[FILE]
class-file-upload-upgrader.php
[FILE]
class-ftp-pure.php
[FILE]
class-ftp-sockets.php
[FILE]
class-ftp.php
[FILE]
class-language-pack-upgrader-skin.php
[FILE]
class-language-pack-upgrader.php
[FILE]
class-pclzip.php
[FILE]
class-plugin-installer-skin.php
[FILE]
class-plugin-upgrader-skin.php
[FILE]
class-plugin-upgrader.php
[FILE]
class-theme-installer-skin.php
[FILE]
class-theme-upgrader-skin.php
[FILE]
class-theme-upgrader.php
[FILE]
class-walker-category-checklist.php
[FILE]
class-walker-nav-menu-checklist.php
[FILE]
class-walker-nav-menu-edit.php
[FILE]
class-wp-ajax-upgrader-skin.php
[FILE]
class-wp-application-passwords-list-table.php
[FILE]
class-wp-automatic-updater.php
[FILE]
class-wp-comments-list-table.php
[FILE]
class-wp-community-events.php
[FILE]
class-wp-debug-data.php
[FILE]
class-wp-filesystem-base.php
[FILE]
class-wp-filesystem-direct.php
[FILE]
class-wp-filesystem-ftpext.php
[FILE]
class-wp-filesystem-ftpsockets.php
[FILE]
class-wp-filesystem-ssh2.php
[FILE]
class-wp-importer.php
[FILE]
class-wp-internal-pointers.php
[FILE]
class-wp-links-list-table.php
[FILE]
class-wp-list-table-compat.php
[FILE]
class-wp-list-table.php
[FILE]
class-wp-media-list-table.php
[FILE]
class-wp-ms-sites-list-table.php
[FILE]
class-wp-ms-themes-list-table.php
[FILE]
class-wp-ms-users-list-table.php
[FILE]
class-wp-plugin-install-list-table.php
[FILE]
class-wp-plugins-list-table.php
[FILE]
class-wp-post-comments-list-table.php
[FILE]
class-wp-posts-list-table.php
[FILE]
class-wp-privacy-data-export-requests-list-table.php
[FILE]
class-wp-privacy-data-removal-requests-list-table.php
[FILE]
class-wp-privacy-policy-content.php
[FILE]
class-wp-privacy-requests-table.php
[FILE]
class-wp-screen.php
[FILE]
class-wp-site-health-auto-updates.php
[FILE]
class-wp-site-health.php
[FILE]
class-wp-site-icon.php
[FILE]
class-wp-terms-list-table.php
[FILE]
class-wp-theme-install-list-table.php
[FILE]
class-wp-themes-list-table.php
[FILE]
class-wp-upgrader-skin.php
[FILE]
class-wp-upgrader-skins.php
[FILE]
class-wp-upgrader.php
[FILE]
class-wp-users-list-table.php
[FILE]
comment.php
[FILE]
continents-cities.php
[FILE]
credits.php
[FILE]
dashboard.php
[FILE]
deprecated.php
[FILE]
edit-tag-messages.php
[FILE]
export.php
[FILE]
file.php
[FILE]
image-edit.php
[FILE]
image.php
[FILE]
import.php
[FILE]
list-table.php
[FILE]
media.php
[FILE]
menu.php
[FILE]
meta-boxes.php
[FILE]
misc.php
[FILE]
ms-admin-filters.php
[FILE]
ms-deprecated.php
[FILE]
ms.php
[FILE]
nav-menu.php
[FILE]
network.php
[FILE]
noop.php
[FILE]
options.php
[FILE]
plugin-install.php
[FILE]
plugin.php
[FILE]
post.php
[FILE]
privacy-tools.php
[FILE]
revision.php
[FILE]
schema.php
[FILE]
screen.php
[FILE]
taxonomy.php
[FILE]
template.php
[FILE]
theme-install.php
[FILE]
theme.php
[FILE]
translation-install.php
[FILE]
update-core.php
[FILE]
update.php
[FILE]
upgrade.php
[FILE]
user.php
[FILE]
widgets.php
Редактирование: class-wp-ajax-upgrader-skin.php
<?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 ( str_contains( $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 ); } }
Сохранить
Переименовать файл
Переименовать
Изменить права доступа
Текущие права:
0644
(644)
Изменить права
Удалить файл
Удалить файл