Astra_Rollback_Version::upgrade()
Upgrade.
Description
Run WordPress upgrade to Rollback to previous version.
Source
File: admin/astra-rollback/class-astra-rollback-version.php
protected function upgrade() { require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $theme_name = self::astra_get_white_lable_name(); $upgrader_args = array( 'url' => 'update.php?action=upgrade-theme&theme=' . rawurlencode( $this->theme_slug ), 'theme' => $this->theme_slug, 'nonce' => 'upgrade-theme_' . $this->theme_slug, /* translators: %s: whitelable name and version */ 'title' => sprintf( __( 'Rollback %1$s to version %2$s', 'astra-addon' ), $theme_name, $this->version ), ); $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( $upgrader_args ) ); $upgrader->upgrade( $this->theme_slug ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.6.1 | Introduced. |