芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/premium-addons-for-elementor/admin/includes/pa-rollback.php
$value ) { $this->{$key} = $value; } } /** * Print Inline Style * * Used to print inline style on rollback page * * @since 0.0.1 * @access private */ private function print_inline_style() { ?> new_version = $this->version; $plugin_info->slug = $this->plugin_slug; $plugin_info->package = $this->package_url; $plugin_info->url = 'https://premiumaddons.com/'; $update_plugins->response[ $this->plugin_name ] = $plugin_info; set_site_transient( 'update_plugins', $update_plugins ); } /** * Upgrade * * Rollback update * * @since 0.0.1 * @access private */ protected function upgrade() { require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $logo_url = PREMIUM_ADDONS_URL . 'admin/images/pa-logo-symbol.png'; $upgrader_args = array( 'url' => 'update.php?action=upgrade-plugin&plugin=' . rawurlencode( $this->plugin_name ), 'plugin' => $this->plugin_name, 'nonce' => 'upgrade-plugin_' . $this->plugin_name, 'title' => '
' . __( 'Rolling Back to Version ', 'premium-addons-for-elementor' ) . $this->version, ); $this->print_inline_style(); $upgrader = new \Plugin_Upgrader( new \Plugin_Upgrader_Skin( $upgrader_args ) ); $upgrader->upgrade( $this->plugin_name ); } /** * Run * * Trigger rollback functions * * @since 0.0.1 * @access private */ public function run() { $this->apply_package(); $this->upgrade(); } }