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 );
	}

Changelog

Changelog
Version Description
3.6.1 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.