??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/turanoil.kz/wp-content/plugins/elementor/includes/rollback.php
⬅ Kembali
<?php
namespace Elementor;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Elementor rollback.
*
* Elementor rollback handler class is responsible for rolling back Elementor to
* previous version.
*
* @since 1.5.0
*/
class Rollback {
/**
* Package URL.
*
* Holds the package URL.
*
* @since 1.5.0
* @access protected
*
* @var string Package URL.
*/
protected $package_url;
/**
* Version.
*
* Holds the version.
*
* @since 1.5.0
* @access protected
*
* @var string Package URL.
*/
protected $version;
/**
* Plugin name.
*
* Holds the plugin name.
*
* @since 1.5.0
* @access protected
*
* @var string Plugin name.
*/
protected $plugin_name;
/**
* Plugin slug.
*
* Holds the plugin slug.
*
* @since 1.5.0
* @access protected
*
* @var string Plugin slug.
*/
protected $plugin_slug;
/**
* Rollback constructor.
*
* Initializing Elementor rollback.
*
* @since 1.5.0
* @access public
*
* @param array $args Optional. Rollback arguments. Default is an empty array.
*/
public function __construct( $args = [] ) {
foreach ( $args as $key => $value ) {
$this->{$key} = $value;
}
}
/**
* Print inline style.
*
* Add an inline CSS to the rollback page.
*
* @since 1.5.0
* @access private
*/
private function print_inline_style() {
?>
<style>
.wrap {
overflow: hidden;
max-width: 850px;
margin: auto;
font-family: Courier, monospace;
}
h1 {
background: #D40C5C;
text-align: center;
color: #fff !important;
padding: 70px !important;
text-transform: uppercase;
letter-spacing: 1px;
}
h1 img {
max-width: 300px;
display: block;
margin: auto auto 50px;
}
</style>
<?php
}
/**
* Apply package.
*
* Change the plugin data when WordPress checks for updates. This method
* modifies package data to update the plugin from a specific URL containing
* the version package.
*
* @since 1.5.0
* @access protected
*/
protected function apply_package() {
$update_plugins = get_site_transient( 'update_plugins' );
if ( ! is_object( $update_plugins ) ) {
$update_plugins = new \stdClass();
}
$plugin_info = new \stdClass();
$plugin_info->new_version = $this->version;
$plugin_info->slug = $this->plugin_slug;
$plugin_info->package = $this->package_url;
$plugin_info->url = 'https://elementor.com/';
$update_plugins->response[ $this->plugin_name ] = $plugin_info;
// Remove handle beta testers.
remove_filter( 'pre_set_site_transient_update_plugins', [ Plugin::instance()->beta_testers, 'check_version' ] );
set_site_transient( 'update_plugins', $update_plugins );
}
/**
* Upgrade.
*
* Run WordPress upgrade to rollback Elementor to previous version.
*
* @since 1.5.0
* @access protected
*/
protected function upgrade() {
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
$logo_url = ELEMENTOR_ASSETS_URL . 'images/logo-panel.svg';
$upgrader_args = [
'url' => 'update.php?action=upgrade-plugin&plugin=' . rawurlencode( $this->plugin_name ),
'plugin' => $this->plugin_name,
'nonce' => 'upgrade-plugin_' . $this->plugin_name,
'title' => '<img src="' . $logo_url . '" alt="Elementor">' . esc_html__( 'Rollback to Previous Version', 'elementor' ),
];
$this->print_inline_style();
add_filter( 'gettext', [ $this, 'update_installing_string' ], 10, 3 );
$upgrader = new \Plugin_Upgrader( new \Plugin_Upgrader_Skin( $upgrader_args ) );
$upgrader->strings['installing_package'] = esc_html__( 'Installing your selected version…', 'elementor' );
$upgrader->upgrade( $this->plugin_name );
remove_filter( 'gettext', [ $this, 'update_installing_string' ], 10 );
}
public function update_installing_string( $translation, $text, $domain ) {
if ( 'Installing the latest version…' === $text && 'default' === $domain ) {
return esc_html__( 'Installing your selected version…', 'elementor' );
}
return $translation;
}
/**
* Run.
*
* Rollback Elementor to previous versions.
*
* @since 1.5.0
* @access public
*/
public function run() {
$this->apply_package();
$this->upgrade();
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 admin-templates
dir
—
2026-06-22 15:34
📁 base
dir
—
2026-06-22 15:34
📁 controls
dir
—
2026-06-22 15:34
📁 editor-templates
dir
—
2026-06-22 15:34
📁 elements
dir
—
2026-06-22 15:34
📁 interfaces
dir
—
2026-06-22 15:34
📁 libraries
dir
—
2026-06-22 15:34
📁 managers
dir
—
2026-06-22 15:34
📁 settings
dir
—
2026-06-22 15:34
📁 template-library
dir
—
2026-06-22 15:34
📁 widgets
dir
—
2026-06-22 15:34
🐘 api.php
php
8.7 KB
2026-06-22 15:34
🐘 autoloader.php
php
9.8 KB
2026-06-22 15:34
🐘 beta-testers.php
php
3 KB
2026-06-22 15:34
🐘 compatibility.php
php
11 KB
2026-06-22 15:34
🐘 conditions.php
php
2.7 KB
2026-06-22 15:34
🐘 db.php
php
15.9 KB
2026-06-22 15:34
🐘 editor-assets-api.php
php
4.1 KB
2026-06-22 15:34
🐘 embed.php
php
8.5 KB
2026-06-22 15:34
🐘 fonts.php
php
62.5 KB
2026-06-22 15:34
🐘 frontend.php
php
40 KB
2026-06-22 15:34
🐘 heartbeat.php
php
2.6 KB
2026-06-22 15:34
🐘 maintenance-mode.php
php
11.2 KB
2026-06-22 15:34
🐘 maintenance.php
php
2.8 KB
2026-06-22 15:34
🐘 plugin.php
php
16.7 KB
2026-06-22 15:34
🐘 preview.php
php
7.9 KB
2026-06-22 15:34
🐘 rollback.php
php
4.2 KB
2026-06-22 15:34
🐘 shapes.php
php
7.8 KB
2026-06-22 15:34
🐘 stylesheet.php
php
8.9 KB
2026-06-22 15:34
🐘 tracker.php
php
17 KB
2026-06-22 15:34
🐘 user-data.php
php
3.4 KB
2026-06-22 15:34
🐘 user.php
php
10 KB
2026-06-22 15:34
🐘 utils.php
php
24.9 KB
2026-06-22 15:34