Редактор файлов и навигация
Текущая папка: //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-plugin-upgrader-skin.php
<?php /** * Upgrader API: Plugin_Upgrader_Skin class * * @package WordPress * @subpackage Upgrader * @since 4.6.0 */ /** * Plugin Upgrader Skin for WordPress Plugin Upgrades. * * @since 2.8.0 * @since 4.6.0 Moved to its own file from wp-admin/includes/class-wp-upgrader-skins.php. * * @see WP_Upgrader_Skin */ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin { /** * Holds the plugin slug in the Plugin Directory. * * @since 2.8.0 * * @var string */ public $plugin = ''; /** * Whether the plugin is active. * * @since 2.8.0 * * @var bool */ public $plugin_active = false; /** * Whether the plugin is active for the entire network. * * @since 2.8.0 * * @var bool */ public $plugin_network_active = false; /** * Constructor. * * Sets up the plugin upgrader skin. * * @since 2.8.0 * * @param array $args Optional. The plugin upgrader skin arguments to * override default options. Default empty array. */ public function __construct( $args = array() ) { $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __( 'Update Plugin' ), ); $args = wp_parse_args( $args, $defaults ); $this->plugin = $args['plugin']; $this->plugin_active = is_plugin_active( $this->plugin ); $this->plugin_network_active = is_plugin_active_for_network( $this->plugin ); parent::__construct( $args ); } /** * Performs an action following a single plugin update. * * @since 2.8.0 */ public function after() { $this->plugin = $this->upgrader->plugin_info(); if ( ! empty( $this->plugin ) && ! is_wp_error( $this->result ) && $this->plugin_active ) { // Currently used only when JS is off for a single plugin update? printf( '<iframe title="%s" style="border:0;overflow:hidden" width="100%%" height="170" src="%s"></iframe>', esc_attr__( 'Update progress' ), wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ) ); } $this->decrement_update_count( 'plugin' ); $update_actions = array( 'activate_plugin' => sprintf( '<a href="%s" target="_parent">%s</a>', wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ), __( 'Activate Plugin' ) ), 'plugins_page' => sprintf( '<a href="%s" target="_parent">%s</a>', self_admin_url( 'plugins.php' ), __( 'Go to Plugins page' ) ), ); if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugin', $this->plugin ) ) { unset( $update_actions['activate_plugin'] ); } /** * Filters the list of action links available following a single plugin update. * * @since 2.7.0 * * @param string[] $update_actions Array of plugin action links. * @param string $plugin Path to the plugin file relative to the plugins directory. */ $update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin ); if ( ! empty( $update_actions ) ) { $this->feedback( implode( ' | ', (array) $update_actions ) ); } } }
Сохранить
Переименовать файл
Переименовать
Изменить права доступа
Текущие права:
0644
(644)
Изменить права
Удалить файл
Удалить файл